Manage Oracle with Mobile Admin
This document provides information about how to use the Mobile Admin Client to manage Oracle servers.
The procedures in this chapter assume that:
- You are logged in to Mobile Admin;
- You have selected a server that hosts Oracle from your Manage Hosts list, or selected the Oracle service from the Manage Services list.
- You selected the Oracle Enterprise Manager icon to open the Oracle Enterprise Manager screen.
Detection
Oracle is been detected if a successful TCP connection can be made to port 1521 or other user configured ports.
Authentication
Mobile Admin will prompt you for Oracle credentials.
Communication method
The .NET OracleClient library is used for management.
Manage the databases
You can manage Oracle databases with Mobile Admin.
Add and remove a database
- From the Oracle Enterprise Manager screen, select the Add Database option on the menu.
- In the Database SID field, type the name of the system identifier (SID) for the database.
- On the menu or the Add Database screen, click Add.
To remove a database:
- Select the the database you with to remove.
- Click Remove on the menu.
Manage instances and sessions
You can manage Oracle server instances and sessions with Mobile Admin.
View instance configurations
- From the Oracle Enterprise Manager screen, select the database you want to use.
- Select the Instance icon.
- Select the Configuration icon.
View session information
- From the Oracle Enterprise Manager screen, select the database for which you wish to view session information.
- Select Instance.
- Select Sessions.
- Select the session that you want to view.
Kill a session
Follow the procedure for viewing session information to select the session that you want to kill.
On the menu, click Kill Session.
Manage schemas
You can manage Oracle server schemas with Mobile Admin, including tables, views, sequences and procedures.
View schema information
- From the Oracle Enterprise Manager screen, select database that you want to use.
- Select Schema.
View columns and statistics for a table
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Tables.
- Do one of the following:
- To view column information, select Columns.
- To view table statistics, select Statistics.
Remove a table
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Tables.
- On the menu, click Remove.
View a view
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Views.
Create a view
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Views.
- On the menu, click Create.
- Complete the following fields:
- Name – Enter a name for the view.
- Schema – Displays the name of the schema.
- Query Text – Type the SQL query text that defines the view.
- Aliases – Type any synonyms for the view. [optional]
- Replace if Exists – Select this check box to indicate that a trigger is to be recreated (if it already exists) without dropping, recreating and regenerating object privileges previously granted.
- On the menu, click Create.
Edit a view
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Views.
- Select the view you want to edit.
- Edit the fields as required.
- Save your changes by selecting Apply on the menu.
Remove a view
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Views.
- Select the view you want to remove.
- On the menu, click Remove.
View and edit a sequence
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Sequences.
- Select the sequence you want to view.
- To edit a sequence, make the desired changes and select Apply on the menu.
Create a sequence
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Sequences.
- On the menu, click Create.
- Complete the following fields:
- Name – Type a name for the sequence.
- Schema – Displays the name of the schema.
- Type – Select Ascending to create a sequence where values increase from the initial value towards the maximum value. Select Descending to create a sequence where values decrease from the initial value towards the minimum value.
- Minimum – Type the minimum allowed value of the sequence.
- Maximum – Type the maximum value of the sequence.
- Interval – Type the interval by which the sequence increases or decreases.
- Initial – Type the starting value of the sequence.
- Cycle Values – When selected, the sequence will continue to generate values after reaching its minimum or maximum value.
- Order Values – When selected, the sequence numbers will be generated in order of request.
- Cache – Select Default to use the default value of 20. Select No Cache to specify that the values of the sequence not be pre-allocated. Select Size to enter a cache size value. For sequences that cycle, this value must be less than the number of values in the cycle. If the maximum number of values the sequence can generate is less than the cache size, the cache size will be automatically changed to the maximum number of possible values.
- Cache Size – Type the number of values to be pre-allocated and stored by the database.
- On the menu, click Create.
Remove a sequence
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Sequences.
- Select the sequence you want to remove.
- Click Remove on the menu.
Access and editing a stored procedure
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Source Types.
- Select Procedures and then select the procedure that you want to view.
- To edit a procedure, select the procedure that you want to make changes to, make the desired changes, and then select Apply from the menu.
Create a stored procedure
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Source Types.
- Select Procedures.
- On the menu, click Create.
- Complete the fields as desired.
- Click Create on the menu.
Remove a stored procedure
- Follow the procedure for viewing schema information to select the schema you want to use.
- Select Source Types.
- Select Procedures.
- Select the procedure you want to remove.
- Click Remove.
Manage security
You can manage Oracle server security with Mobile Admin, including users, roles, and profiles.
View and edit users
- From the Oracle Enterprise Manager screen, select the database that you wish to use.
- Select Security.
- Select Users.
To edit a user:
- Make the desired changes in the Profile and Status fields.
- Select Apply from the menu.
Create a user
- Follow the procedure to view users and select Create from the menu.
- Complete the following fields:
- Username – Enter the username that the new user will use to access the Oracle database.
- Password – Enter a password for the user.
- Confirm Password – Re-enter the password.
- Expire Password Now – Select this check box to force the user to change their password upon login.
- Profile – Choose from the existing profiles.
- Default Tablespace – Choose from the existing tablespaces.
- Temporary Tablespace – Choose from the existing tablespaces.
- On the menu, click Create.
Remove a user
- Follow the procedure to view users and select the user that you want to remove.
- On the menu, click Remove User.
Reset a password
- Follow the procedure to view users and select the user whose password you wish to reset.
- On the menu, click Reset Password.
- Complete the following fields:
- Password – enter a new password for the user.
- Confirm Password – re-enter the new password.
- Expire Password Now – select this check box to force the user to change their password upon login.
- On the menu, click Apply.
View the roles granted to a user and add a new role
-
Follow the procedure to view users and select the user whose roles you wish to view or add to.
To view the roles granted to the user, click Role on the menu.
To add a new role, click Add on the menu, and select the role that you wish to add for the user.
- Select the preferred settings for the role selected.
- Click Apply on the menu or on the Add a New Role screen.
Revoke a role granted to a user
- Follow the procedure to view users and select the user whose profile you wish to edit.
- On the menu, click Role.
- Select the role that you want to revoke.
- On the menu click Revoke.
View and add system privileges granted to a user
-
Follow the procedure to view users and select the user whose privileges you wish to view.
To view system privileges for the user, click System on the menu.
To add system privileges for the user, click Add from the menu.
- Select the privilege you want to grant to the user and click Grant from the menu.
Revoke system privileges from a user
- Follow the procedure to view users and select the user for whom you wish to revoke a system privilege.
- On the menu, click System.
- Select the system privilege that you want to revoke.
- On the menu, click Revoke.
View a list of available roles
- From the Oracle Enterprise Manager screen, select the database that you wish to view roles for.
- Select Security.
- Select Roles.
Create, editing, and remove a role
Follow the procedure to view a list of available roles.
To create a role:
- Click Create on the menu.
- Complete the required fields and select Create.
To edit a role:
- Navigate to the role you wish to edit, make the desired modifications.
- Select Apply.
To remove a role:
- Navigate to the role you wish to remove.
- Select Remove Role from the menu.
View system privileges granted to a role
- Follow the procedure to view a list of available roles and select the role for which you wish to view associated privileges.
- On the menu, click System.
Add and revoke privileges to and from a role
Follow the procedure to view a list of system privileges for the role whose priveleges you wish to revise.
To add system privileges:
- Click Add on the menu.
- Scroll to the system privilege that you want to grant to the role.
- On the menu, click Grant.
To revoke system privileges:
- Select the privileges you wish to revoke.
- Click Revoke on the menu.
Add and revoke roles to and from an existing role
- Follow the procedure to view a list of available roles and select the role that you want to add additional roles to or revoke roles from.
- On the menu, click Roles.
To add a role:
- Click Add on the menu.
- Select the role you would like to add to the current role.
To revoke a role:
- Select the role you wish to revoke.
- Click Revoke on the menu.
View a list of profiles
- From the Oracle Enterprise Manager screen, select the database that you want to view profiles for.
- Select Security.
- Select Profiles.
Create a profile
Follow the procedure to view a list of profiles.
- On the menu, click Create.
- Complete the following fields:
- Name – Type a name for the profile.
- CPU/Session (Sec./100) – Type a limit for the CPU time for a session, in hundredths of a second.
- CPU/Call (Sec./100) – Type a limit for the CPU time for a call, in hundredths of a second.
- Connect Time (Minutes) – Type a limit for the total elapsed time for a session, in minutes.
- Idle Time (Minutes) – Type a limit for a period of inactive time during a session, in minutes.
- Concurrent Sessions (Per User) – Type a limit to the number of concurrent sessions allowed for a user with this profile.
- Reads/Session (Blocks) – Type a limit for the number of data blocks read in a session, including blocks read from memory and disk.
- Reads/Call (Blocks) – Type a limit for the number of data blocks read for a call to process a SQL statement.
- Private SGA (Kbytes) – Type a limit for the amount of private space a session can allocate in the shared pool of the System Global Area (SGA) to integer bytes.
- Composite Limit (Service Units) – Type a limit for the total resource cost for a session.
- On the menu, click Apply.
Remove a profile
- Follow the procedure to view a list of profiles and select the profile you wish to remove.
- Click Remove on the menu.
View and edit a profile
- Follow the procedure to view a list of profiles and select the profile you wish to view or edit.
- Edit the fields as required.
- On the menu, click Apply.
Edit the password policies of a profile
- Follow the procedure to view a list of profiles and select the profile whose password policies you wish to edit.
- On the menu, click Password.
- Edit the fields as desired, using the valid values of Unlimited, Default, or any numeric value:
- On the menu, click Apply.
Manage storage
You can manage Oracle server storage with Mobile Admin, including tablespaces and datafiles.
View and editing tablespaces
- From the Oracle Enterprise Manager screen, select the database that you wish to view tablespaces for.
- Select Storage.
- Select Tablespaces.
To edit a tablespace:
- Select the tablespace you wish to edit.
- Make the desired modifications.
- Click Apply on the menu.
Create and remove a tablespace
- Follow the procedure to view a list of tablespaces.
- To create a tablespace, click Create on the menu.
- Complete the fields as desired and click Create from the menu.
To remove a tablespace:
- Select the tablespace you wish to remove.
- Select Remove from the menu.
View and editing datafiles
- From the Oracle Enterprise Manager screen, select the database that you want to view datafiles for.
- Select Storage.
- Select Tablespaces.
- On the menu, click Datafiles.
To edit datafiles:
- Select the datafile that you wish to modify.
- Make the desired changes, and select Apply on the menu.
Create a datafile
- Follow the procedure to view a list of datafiles and click Create on the menu.
- Complete the fields as desired and click Create on the menu.
Run SQL queries
- From the Oracle Enterprise Manager screen, select that database that you wish to run an SQL query on.
- Select SQL Prompt.
- Type the SQL query that you want to run.
- On the menu, click Send.