Okay, here's another question for you guys.
Now the script I want to write is an automated database creation script that a user can run. What would be the best way to run the SQLPlus commands?
My thoughts were this:
-In the script just prompt the user for all the information (i.e SID, log file specs, important directory locations, tablespace info, etc.) required to create a database
-Once I have all this information I would create another file (called /temp/dbCreate for example) and send all required info to the file (SID >> /temp/dbCreate, MAXLOGFILE >> /temp/dbCreate, etc.) one by one till all information is accounted for
-I would then use the following command in my inital script to actually create the database using SQLPlus:
Code:
sqlplus < /temp/dbCreate
Is this the best possible way to implement what I want to do or is there an easier way?
Thanks again
homey (or anyone else): Is there a webpage reference or man page that can explain the [ $? = 1 ] in a little more detail (like how it works and other usage formats)?