Really simple shell script to create oracle database


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Really simple shell script to create oracle database
# 1  
Old 07-11-2012
Question Really simple shell script to create oracle database

Hello ,

I am new in this forum and need your help as I am totally confused Smilie

I read a lot of threads and tried to search a lot but did not get the exact answer to my question.

I just want a simple (content wise may be long) shell script to create oracle database.

In detail:
1 - I want to create a script named create_oracle_db.sh
2 - I want to run it with "root" user and command should be
./create_oracle_db.sh <DB_NAME>
3 - If the db already exists then the script should check the next argument if it is "yes" then the old db should be deleted and new should be created. If it is "no" then it should give output as "DB Already exists.....blah blah do this and that"
4 - my oracle installation is on /home/data/oracle/ora11gR2/network/admin
5 - my oradata is /home/data/oracle/oradata

Please let me know where can I get an exact answer. Already Smilie

Regards,
rahoolm
# 2  
Old 07-11-2012
Why invente what already exist?
Look at how oracle installs itself, yes, it uses a script...

So get the install script, and start learning, then once you are clear, try to customize the script to your needs!

Good luck
# 3  
Old 07-11-2012
Quote:
Originally Posted by vbe
Why invente what already exist?
Look at how oracle installs itself, yes, it uses a script...

So get the install script, and start learning, then once you are clear, try to customize the script to your needs!

Good luck
Could you please let me know where I can find those scripts?

I am not an expert Smilie
# 4  
Old 07-11-2012
normally on oracle first CD (install...)
# 5  
Old 07-11-2012
If you can find an old oracle 7 or 8 you will be fine, what follows after starts to use, then mainly use JAVA as a GUI...
# 6  
Old 07-24-2012
you can find that info on oracle metalink
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to fix connection to Oracle database through shell script?

I have a question regarding how to connect to Oracle Database through shell script. 1. If I want call a stored procedure on Linux server as this, it works. $sqlplus /nolog SQL*Plus: Release 12.1.0.2.0 Production on Fri Jun 12 14:49:49 2015 Copyright (c) 1982, 2014, Oracle. All rights... (2 Replies)
Discussion started by: duke0001
2 Replies

2. Shell Programming and Scripting

How to connect to Oracle database using shell script?

Hi All, I am newbie to unix shell scripting. I want to connect to oracle database using shell script. I know how to connect DB using user name and password but my question is if my password is having '@' sign then how to connect. I have tried like below, cnt=`sqlplus -s /nolog << EOFSQL ... (3 Replies)
Discussion started by: pmotewar
3 Replies

3. Shell Programming and Scripting

Shell Script to connect to the oracle database

Hi Unix Gurus, I have a requirement to write a script, Oracle DB gets referesh every 6hrs, hence we need write a script to connect to the database , if it connects it should generate a file to proceed the next job application or when an error when connectiong to DB it should not generate any... (8 Replies)
Discussion started by: bshivali
8 Replies

4. Shell Programming and Scripting

shell script for saving oracle database records in variable

i want to retrieve value in each column of each row in sql plus and save them into array variable and echo the value in array variable (2 Replies)
Discussion started by: ramish
2 Replies

5. Solaris

Can't create database after Oracle Database installation

I installed Oracle 10 software on Solaris 11 Express, everything was fine execpt I can't create database using dbca.rsp file. I populated file with following options. OPERATION_TYPE = "createDatabase" GDBNAME = "solaris_user.domain.com" SID = "solaris_user" TEMPLATENAME = "General... (0 Replies)
Discussion started by: solaris_user
0 Replies

6. Shell Programming and Scripting

why do we need UNIX shell script to load data into Oracle database

Hello everyone, I am new to shell scripting/ loading data into a database. I want to load data into Oracle database using SQL loader. Can some one please explain why do we need unix shell script to load the data into the database? Also can someone please explain what has to be in that script?... (5 Replies)
Discussion started by: new_prog
5 Replies

7. Shell Programming and Scripting

How to create a simple shell script to backup

Hello - I am in process of deleting many files which are older than 4 weeks. For example I am inside: /subsystem/prod/ Files are with various extentions, but anything older than 4 weeks should be deleted. What would be the most simplest script to acheive this? (4 Replies)
Discussion started by: DallasT
4 Replies

8. Shell Programming and Scripting

Connecting to oracle database from shell script

Hi all, I am satyakiran , i am new to the forum. i never done shell scripts for connecting to the data base (oracle) and fetching the data from the database( thru sql select statements ) i want to know 1. how to connect to the data base(oracle) using shell script 2. how to retrieve data... (8 Replies)
Discussion started by: satyakiran
8 Replies

9. Shell Programming and Scripting

Need shell script to extract data from oracle database

shell script (4 Replies)
Discussion started by: frns5
4 Replies

10. UNIX for Advanced & Expert Users

How to write Flat Files by shell script using Oracle Database

Hello There.. I came to a situation where I need to write flat files using shell scripts, I need to pull the records from the oracle database and create the flat file, This process should be automated. Can any shell script expert out here to help me.. please.. Will be really glad to... (3 Replies)
Discussion started by: coolbuddy
3 Replies
Login or Register to Ask a Question