Sie sind auf Seite 1von 2

Using username "oracle".

Last login: Fri Dec 9 16:16:23 2016 from mkthopim.ds.indianoil.in


SID= INDSOFTDB2
ORACLE_UNQNAME=INDSOFTDB
SERVER IP=10.146.64.111
ORACLE_HOME=/oracle/app/oracle/product/11.2.0.3/dbhome_1
[oracle@INPORM02 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 9 16:49:37 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options

SQL> spool on
SQL>
SQL> spool '/backup/maint_job_stat.txt'
SP2-0606: Cannot create SPOOL file "/backup/maint_job_stat.txt"
SQL> ^C
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 -
64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options
[oracle@INPORM02 ~]$ pwd
/home/oracle
[oracle@INPORM02 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Fri Dec 9 16:51:45 2016

Copyright (c) 1982, 2011, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options

SQL> spool on
SQL> spool '/home/oracle/stat.log'
SQL>
SQL>
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit
Production
With the Partitioning, Real Application Clusters, Automatic Storage Management,
OLAP,
Data Mining and Real Application Testing options
[oracle@INPORM02 ~]$ cd /home/oracle/
[oracle@INPORM02 ~]$ ll
total 7232
-rw-r--r--. 1 root root 0 Sep 21 09:38 0
drwxr-xr-x. 2 oracle oinstall 4096 Nov 8 11:28 acs
-rw-r--r--. 1 oracle oinstall 1362778 Oct 17 12:02 awrreport_10_10_node2.html
-rw-r--r--. 1 oracle oinstall 1332807 Oct 17 12:04 awrreport_17_10_node2.html
-rw-r--r--. 1 oracle oinstall 1400531 Nov 11 09:50 awr_report_1hr.html
-rw-r--r--. 1 oracle oinstall 1456386 Oct 17 11:08 awrreport_node2.html
-rw-r--r--. 1 oracle oinstall 172 Dec 9 17:05 CASHMEMO.sql
-rw-r--r--. 1 oracle oinstall 1821705 Dec 8 17:18 node2_query.html
-rw-r--r--. 1 oracle oinstall 35 Dec 9 16:52 on.lst
drwxr-xr-x. 7 root root 4096 Sep 21 09:44 orachk
drwxr-xr-x. 3 oracle oinstall 4096 Dec 17 2015 oradiag_oracle
-rw-r--r--. 1 oracle oinstall 12 Dec 9 17:22 stat.log
[oracle@INPORM02 ~]$ rm stat.log
[oracle@INPORM02 ~]$ ll
total 7228
-rw-r--r--. 1 root root 0 Sep 21 09:38 0
drwxr-xr-x. 2 oracle oinstall 4096 Nov 8 11:28 acs
-rw-r--r--. 1 oracle oinstall 1362778 Oct 17 12:02 awrreport_10_10_node2.html
-rw-r--r--. 1 oracle oinstall 1332807 Oct 17 12:04 awrreport_17_10_node2.html
-rw-r--r--. 1 oracle oinstall 1400531 Nov 11 09:50 awr_report_1hr.html
-rw-r--r--. 1 oracle oinstall 1456386 Oct 17 11:08 awrreport_node2.html
-rw-r--r--. 1 oracle oinstall 172 Dec 9 17:05 CASHMEMO.sql
-rw-r--r--. 1 oracle oinstall 1821705 Dec 8 17:18 node2_query.html
-rw-r--r--. 1 oracle oinstall 35 Dec 9 16:52 on.lst
drwxr-xr-x. 7 root root 4096 Sep 21 09:44 orachk
drwxr-xr-x. 3 oracle oinstall 4096 Dec 17 2015 oradiag_oracle
[oracle@INPORM02 ~]$ cat CASHMEMO.sql
spool CASHMEMO_Stats.log
exec
dbms_stats.gather_table_stats(ownname=>'INDSOFTX1PROD',tabname=>'TRN_CASHMEMO_DET',
estimate_percent=>100,degree=>16,casc
ade=>true);
spool off
[oracle@INPORM02 ~]$

Das könnte Ihnen auch gefallen