1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| #######################
### STUFF
#######################
# Get a list of SIDs
cat /etc/oratab
ps -ef | grep pmon
# tnsnames.ora here->
cd /usr/local/oracle/product/12.1.0/dbhome_1/network/admin/
# Common queries
SELECT owner, table_name FROM dba_tables;
SELECT owner, table_name FROM all_tables;
SELECT table_name FROM user_tables;
# Testing
sqlplus x7_proxy[x7]/Fsoc1etyDevpr0xy@dbn-02sc8:1522/PTR2
|