home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 28.ddi / install / rdbms_ver.out next >
Encoding:
Text File  |  1991-03-04  |  8.9 KB  |  349 lines

  1.  
  2.  
  3. #Verifying ORACLE RDBMS ...
  4.  
  5.  
  6.                #########################################
  7.  
  8. #Check the banners:
  9.  
  10. exp            6.0.27.9.2 - Production
  11. imp            6.0.27.9.2 - Production
  12. sqldba            6.0.27.9.2 - Production
  13.  
  14.  
  15.  
  16.                ########################################
  17.  
  18. #Invoking ptt
  19.  
  20. SQLDBA> connect system/manager@P:
  21. Connected.
  22. SQLDBA> create table temp (col1 number, col2 char(5));
  23. Statement processed.
  24. SQLDBA> insert into temp values (1,'A');
  25. 1 row processed.
  26. SQLDBA> insert into temp values (2,'B');
  27. 1 row processed.
  28. SQLDBA> insert into temp values (3,'C');
  29. 1 row processed.
  30. SQLDBA> select * from temp;
  31. COL1       COL2 
  32. ---------- -----
  33.          1 A    
  34.          2 B    
  35.          3 C    
  36. 3 rows selected.
  37. SQLDBA> update temp set col2 = 'BB' where col1 = 2;
  38. 1 row processed.
  39. SQLDBA> select * from temp;
  40. COL1       COL2 
  41. ---------- -----
  42.          1 A    
  43.          2 BB   
  44.          3 C    
  45. 3 rows selected.
  46. SQLDBA> drop table temp;
  47. Statement processed.
  48. SQLDBA> disconnect;
  49. Disconnected.
  50. SQLDBA> 
  51.  
  52. SQL*DBA complete.
  53.  
  54.  
  55.  
  56.                ########################################
  57.  
  58. #Invoking ftt
  59.  
  60. SQLDBA> connect system/manager@F:
  61. Connected.
  62. SQLDBA> create table temp (col1 number, col2 char(5));
  63. Statement processed.
  64. SQLDBA> insert into temp values (1,'A');
  65. 1 row processed.
  66. SQLDBA> insert into temp values (2,'B');
  67. 1 row processed.
  68. SQLDBA> insert into temp values (3,'C');
  69. 1 row processed.
  70. SQLDBA> select * from temp;
  71. COL1       COL2 
  72. ---------- -----
  73.          1 A    
  74.          2 B    
  75.          3 C    
  76. 3 rows selected.
  77. SQLDBA> update temp set col2 = 'BB' where col1 = 2;
  78. 1 row processed.
  79. SQLDBA> select * from temp;
  80. COL1       COL2 
  81. ---------- -----
  82.          1 A    
  83.          2 BB   
  84.          3 C    
  85. 3 rows selected.
  86. SQLDBA> drop table temp;
  87. Statement processed.
  88. SQLDBA> disconnect;
  89. Disconnected.
  90. SQLDBA> 
  91.  
  92. SQL*DBA complete.
  93.  
  94.  
  95.                ########################################
  96.  
  97. #Test sga relocation
  98.       #   i) find a suitable value for NEW_SGABEG
  99.       #  ii) define sgabeg in ksms.s to be the one found in i)
  100.       # iii) remake oracle using oracle.mk
  101.       #  iv) invoke the new oracle
  102.  
  103.  
  104.     ls -l /usr/user1/bin/oracle
  105. -rwx------   1 user1    dba      2022439 Dec 15 05:23 /usr/user1/bin/oracle
  106.  
  107. `ksms.s' is up to date.
  108.    #  i)
  109.  
  110. OLD SGABEG :     .set    sgabeg,0X90400000
  111. NEW SGABEG : 0x80400000
  112.  
  113.  
  114.    # ii) grep NEW_SGABEG ksms.s
  115.  
  116.     .set    sgabeg,0x80400000
  117.  
  118.    #iii) make -f oracle.mk oracle
  119.  
  120.     as  -o ksms.o ksms.s
  121.     chmod 644 libknl.a
  122.     ar r libknl.a ksms.o 
  123. cc -o oracle opimai.o osntab.o libsqlnet.a config.o libora.a libknl.a libora.a libpls.a libora.a libknl.a libora.a libpls.a -lld
  124.  
  125.    # iv) invoke new oracle
  126.        ls -l /usr/user1/bin/oracle
  127. -rwx------   1 user1    dba      2022439 Dec 15 06:15 /usr/user1/bin/oracle
  128. SQLDBA> 
  129. SQLDBA> startup
  130. ORACLE instance started.
  131. Database mounted.
  132. Database opened.
  133. Total System Global Area        773524 bytes
  134.               Fixed Size         24452 bytes
  135.            Variable Size        306704 bytes
  136.         Database Buffers        409600 bytes
  137.             Redo Buffers         32768 bytes
  138. SQLDBA> connect internal
  139. Connected.
  140. SQLDBA> create table temp (col1 number, col2 char(5));
  141. Statement processed.
  142. SQLDBA> insert into temp values (1,'A');
  143. 1 row processed.
  144. SQLDBA> insert into temp values (2,'B');
  145. 1 row processed.
  146. SQLDBA> insert into temp values (3,'C');
  147. 1 row processed.
  148. SQLDBA> select * from temp;
  149. COL1       COL2 
  150. ---------- -----
  151.          1 A    
  152.          2 B    
  153.          3 C    
  154. 3 rows selected.
  155. SQLDBA> update temp set col2 = 'BB' where col1 = 2;
  156. 1 row processed.
  157. SQLDBA> select * from temp;
  158. COL1       COL2 
  159. ---------- -----
  160.          1 A    
  161.          2 BB   
  162.          3 C    
  163. 3 rows selected.
  164. SQLDBA> drop table temp;
  165. Statement processed.
  166. SQLDBA> disconnect;
  167. Disconnected.
  168. SQLDBA> shutdown
  169. Database closed.
  170. Database dismounted.
  171. ORACLE instance shut down.
  172. SQLDBA> exit
  173. SQL*DBA complete.
  174.  
  175.        #sga relocation test done.  
  176.        #SGABEG has been restored to     .set    sgabeg,0X90400000
  177.  
  178.  
  179.  
  180.                ########################################
  181.  
  182. #export and import scott/tiger tables
  183.  
  184.    #  i) Build the scott/tiger demo tables
  185.  
  186. SQLDBA> 
  187. SQLDBA> startup
  188. ORACLE instance started.
  189. Database mounted.
  190. Database opened.
  191. Total System Global Area        773524 bytes
  192.               Fixed Size         24452 bytes
  193.            Variable Size        306704 bytes
  194.         Database Buffers        409600 bytes
  195.             Redo Buffers         32768 bytes
  196. SQLDBA> connect internal
  197. Connected.
  198. SQLDBA> create table temp (col1 number, col2 char(5));
  199. Statement processed.
  200. SQLDBA> insert into temp values (1,'A');
  201. 1 row processed.
  202. SQLDBA> insert into temp values (2,'B');
  203. 1 row processed.
  204. SQLDBA> insert into temp values (3,'C');
  205. 1 row processed.
  206. SQLDBA> select * from temp;
  207. COL1       COL2 
  208. ---------- -----
  209.          1 A    
  210.          2 B    
  211.          3 C    
  212. 3 rows selected.
  213. SQLDBA> update temp set col2 = 'BB' where col1 = 2;
  214. 1 row processed.
  215. SQLDBA> select * from temp;
  216. COL1       COL2 
  217. ---------- -----
  218.          1 A    
  219.          2 BB   
  220.          3 C    
  221. 3 rows selected.
  222. SQLDBA> drop table temp;
  223. Statement processed.
  224. SQLDBA> disconnect;
  225. Disconnected.
  226. SQLDBA> shutdown
  227. Database closed.
  228. Database dismounted.
  229. ORACLE instance shut down.
  230. SQLDBA> exit
  231. SQL*DBA complete.
  232.  
  233.    # ii) export the data
  234.    # exp scott/tiger file=verify.dmp grants=y rows=y compress=n indexes=y 
  235.    # constraints=y
  236.  
  237.  
  238. Connected to: ORACLE RDBMS V6.0.27.9.2, transaction processing option - Production
  239. PL/SQL V1.0.30.0.1 - Production
  240.  
  241.  
  242. About to export SCOTT's objects ...
  243. . exporting database links
  244. . exporting cluster definitions
  245. . exporting sequence numbers
  246. . about to export SCOTT's tables ...
  247. . exporting table                          BONUS        0 rows exported
  248. . exporting table                           DEPT        4 rows exported
  249. . exporting table                          DUMMY        1 rows exported
  250. . exporting table                            EMP       14 rows exported
  251. . exporting table                       SALGRADE        5 rows exported
  252. . exporting referential integrity contraints
  253. . exporting synonyms and views
  254. Export terminated successfully.
  255.  
  256.  
  257.  
  258. Export: Version 6.0.27.9.2 - Production on Sat Dec 15 06:17:34 1990
  259.  
  260. Copyright (c) Oracle Corporation 1979, 1989.  All rights reserved.
  261.  
  262.  
  263.  
  264.    
  265.    #iii) delete the existing data in the database ( to make sure that
  266.    #     import works )
  267.  
  268. SQLDBA> connect scott/tiger
  269. Connected.
  270. SQLDBA> select * from emp;
  271. EMPNO      ENAME      JOB       MGR        HIREDATE  SAL        COMM       DEPTN
  272. ---------- ---------- --------- ---------- --------- ---------- ---------- -----
  273. O    
  274. -----
  275. 0 rows selected.
  276. SQLDBA> 
  277.  
  278. SQL*DBA complete.
  279.  
  280.    # iv) import back the data
  281.    # imp scott/tiger file=verify.dmp ignore=y grants=y rows=y fromuser=scott
  282.  
  283.  
  284.  
  285. Connected to: ORACLE RDBMS V6.0.27.9.2, transaction processing option - Production
  286. PL/SQL V1.0.30.0.1 - Production
  287.  
  288. Export file created by EXPORT:V06.00.27
  289. . importing SCOTT's objects into SCOTT
  290. . . importing table "BONUS"                                    0 rows imported
  291. . . importing table "DEPT"                                     4 rows imported
  292. . . importing table "DUMMY"                                    1 rows imported
  293. . . importing table "EMP"                                     14 rows imported
  294. . . importing table "SALGRADE"                                 5 rows imported
  295. Import terminated successfully.
  296.  
  297. Import: Version 6.0.27.9.2 - Production on Sat Dec 15 06:18:03 1990
  298.  
  299. Copyright (c) Oracle Corporation 1979, 1989.  All rights reserved.
  300.  
  301.  
  302.  
  303.    #  v) verify that import works
  304.  
  305. SQLDBA> connect scott/tiger
  306. Connected.
  307. SQLDBA> select * from emp;
  308. EMPNO      ENAME      JOB       MGR        HIREDATE  SAL        COMM       DEPTN
  309. ---------- ---------- --------- ---------- --------- ---------- ---------- -----
  310. O    
  311. -----
  312.       7369 SMITH      CLERK           7902 17-DEC-80        800                 
  313.    20
  314.       7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300      
  315.    30
  316.       7521 WARD       SALESMAN        7698 22-FEB-81       1250        500      
  317.    30
  318.       7566 JONES      MANAGER         7839 02-APR-81       2975                 
  319.    20
  320.       7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400      
  321.    30
  322.       7698 BLAKE      MANAGER         7839 01-MAY-81       2850                 
  323.    30
  324.       7782 CLARK      MANAGER         7839 09-JUN-81       2450                 
  325.    10
  326.       7788 SCOTT      ANALYST         7566 09-DEC-82       3000                 
  327.    20
  328.       7839 KING       PRESIDENT            17-NOV-81       5000                 
  329.    10
  330.       7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0      
  331.    30
  332.       7876 ADAMS      CLERK           7788 12-JAN-83       1100                 
  333.    20
  334.       7900 JAMES      CLERK           7698 03-DEC-81        950                 
  335.    30
  336.       7902 FORD       ANALYST         7566 03-DEC-81       3000                 
  337.    20
  338.       7934 MILLER     CLERK           7782 23-JAN-82       1300                 
  339.    10
  340. 14 rows selected.
  341. SQLDBA> 
  342.  
  343. SQL*DBA complete.
  344.  
  345.  
  346.  
  347.                #######    Rdbms.Verify Done    #######
  348.  
  349.