Professional Documents
Culture Documents
Sap Basis Oracle Commands Useful For Day To Day Work: Index
Sap Basis Oracle Commands Useful For Day To Day Work: Index
Oracle Commands
INDEX
1. Start Database
2. Shut down Database
3. To know the database startup time
4. Find out user /schema name
5. To unlock user
6. To change password from os level
7. To check which tablespaces / datafiles are in backup mode
8. Tablespace in END Backup Mode
1 List files that are in hot-backup mode
9. To check which datafile belongs to which tablespace
10. Check parameter value from db level
11. Show user info including os pid
12. Create a temporary tablespace
2 Make temporary tablespace as Default
13. To Check and Change maxextents
14. Quick datafile health check
3 List controlfiles – Locations
4 Startup Database
STARTUP NOMOUNT :
Means only memory is allocated for instance and no controlfile or datafiles are
mounted. In this state controlfile can be created
STARTUP MOUNT :
Oracle server is reading control file information but data files are not mounted.
This state can be used in case of changing mode of datafiles i.e. offline, backup
etc.
STARTUP OPEN :
Default mode means memory is allocated, control and data files are read and open
db in consistent mode
5 Shutdown Database.
SHUTDOWN IMMEDIATE :
Oracler engine will not wait for sessions to be ended. All active transactions will be
rolled back and server will be down.
SHUTDOWN FORCE :
Not recommended to use – db may become inconsistent)
SHUTDOWN TRANSACTIONAL :
Will wait for all transactions to be ended and sessions will get terminated)
SHUTDOWN NORMAL :
Default option - will wait for all sessions, and transactions to be close)
8 To unlock user
Give below command followed by Commit statement; (Please remove “.” As it has given
here for not to execute command).
11 To check which tablespaces / datafiles are in backup mode
19 To change maxextents
You should only see online and system (maybe read-only too)