Upload
thota-mahesh-dba
View
218
Download
0
Embed Size (px)
Citation preview
7/21/2019 Day 4 - Connect to Database
http://slidepdf.com/reader/full/day-4-connect-to-database 1/1
How to check the no of databases on the server: - /etc/oratab
How to check no of databases currently running on the server: - ps -ef | grep pmon/smon How to check the database status from sqlplus: - select instance_name, status from v$instance; - select name, open_mode from v$database; How to shutdown your database: - shutdown immediate; - shut immediate; How to startup your database: - startup
BASE TABLES:=============
EMP (empno, ename, sal, manager)DEPT (deptno, deptname, location)JOB (jobid, jobname, location)
Metadata - Data about data
dba_tables - tables in the databasedba_users - users in the databasedba_objects - objects in the databse
Base tables = data dictionary tables