home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 37.ddi / demo / README < prev    next >
Encoding:
Text File  |  1991-03-04  |  3.3 KB  |  109 lines

  1. ...
  2. ... $Header: README,v 6.5 90/04/13 11:07:15 pgreenwa Exp $ README Copyr (c) 1989 Oracle
  3. ...
  4.  
  5.  As part of pl/sql distribution, you will find 2 sets of demos; the first
  6.  set (demo set A) contains 5 basic demos and one pro*c demo. The second
  7.  set (demo set B) contains other miscellaneous examples and samples.
  8.  
  9.  
  10.  
  11. DEMO SET A:
  12. ==========
  13.  
  14.    LOADING PL/SQL DEMOS :
  15.    ======================
  16.  
  17.     To load pl/sql demo tables and rows needed for demo set A, perform 
  18.     the following :
  19.  
  20.     1) invoke sqldba and connect to your system user.
  21.        That is,
  22.         $ sqldba
  23.         sqldba>connect system/<your system password>
  24.  
  25.     2) At the sqldba prompt, load the demos by invoking loaddemoa.sql .
  26.  
  27.         sqldba>@loaddemoa
  28.  
  29.  
  30.    RUNNING THE PL/SQL DEMOS :
  31.    =========================
  32.  
  33.         The demos are : demo1.sql , demo2.sql , demo3.sql , demo4.sql
  34.                         demo5.sql and bank_demo.sql
  35.  
  36.         TO run the demos : 
  37.                         invoke sqlplus to connect to the kernel using
  38.                         the user plsqa/supersecret and type "@<test>"
  39.                         or "start <test>" at the sqlplus prompt.
  40.                         That is ,
  41.                              $ sqlplus plsqa/supersecret
  42.                              sqlplus>@demo1
  43.  
  44.         These demos are meant to be interactive and will guide you
  45.         in a step-by-step fashion through the demonstration.
  46.           
  47.         When running the bank_demo.sql demo, you will be asked to build
  48.         a bank_demo executable based on bank_demo.pc file. bank_demo.pc
  49.         file contains embedded pl/sql blocks in a Pro*C program.
  50.         To build the bank_demo executable, perform the following :
  51.  
  52.                     $ cd $ORACLE_HOME/c/demo
  53.                     $ make -f proc.mk bank_demo     
  54.                     $ bank_demo                        # to run.
  55.  
  56.  
  57.  
  58.  
  59. DEMO SET B:
  60. ==========
  61.  
  62.    LOADING PL/SQL DEMOS :
  63.    ======================
  64.  
  65.     To load pl/sql demo tables and rows needed for demo set B, perform 
  66.     the following :
  67.  
  68.     1) invoke sqldba and connect to your system user.
  69.        That is,
  70.     $ sqldba
  71.     sqldba>connect system/<your system password>
  72.  
  73.     2) At the sqldba prompt, load the demos by invoking loaddemob.sql .
  74.  
  75.         sqldba>@loaddemob 
  76.    
  77.  
  78.    RUNNING THE PL/SQL DEMOS :
  79.    =========================
  80.  
  81.     There are two groups of pl/sql demos for demo set B; one group 
  82.     demonstrates running pl/sql blocks from the kernel and the other 
  83.     group demonstrates running pl/sql blocks from the precompilers.
  84.  
  85.     *** PL/SQL demos from the kernel: 
  86.  
  87.        The demos are : examp1.sql , examp2.sql , examp3.sql , examp4.sql ,
  88.                examp5.sql , examp8.sql , examp9.sql , examp10.sql,
  89.                examp11.sql, examp12.sql, examp13.sql, examp14.sql,
  90.                sample1.sql, sample2.sql, sample3.sql, sample4.sql.
  91.  
  92.            TO run the demos : invoke sqlplus to connect to the kernel using
  93.                               the user plsqa/supersecret and type "@<test>"
  94.                   or "start <test>" at the sqlplus prompt.
  95.                   That is ,
  96.                         $ sqlplus plsqa/supersecret
  97.                         sqlplus>@examp1
  98.  
  99.     *** PL/SQL demos from the precompilers:
  100.  
  101.         The demos are : examp6.pc , examp7.pc , sample5.pc.
  102.  
  103.         TO run the demos :
  104.               $ cd $ORACLE_HOME/c/demo
  105.               $ make -f proc.mk examp6        # for examp6.pc
  106.               $ examp6                        # to run. 
  107.  
  108.            
  109.