- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- oracle database creation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 03:18 AM
тАО11-13-2002 03:18 AM
i want to do two things:
1) create a new database from command line
2) create a new database by importing data from an existing one
So what's the approach to follow in the two cases?
What i have to do? how and when create controlfile, redologs, instance....
The database that i want to import is exported from 8.1.6 and has to be imported in 9.2.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 03:42 AM
тАО11-13-2002 03:42 AM
Re: oracle database creation
I think you should be posting this question on the Oracle website:
http://metalink.oracle.com/
Can you get access to this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 03:48 AM
тАО11-13-2002 03:48 AM
Solution1. Create appropriate initSID.ora
2. Set your environment for the new SID, ORACLE_SID etc.
3. Run:
sqlplus '/ as sysdba'
startup nomount
create database...
@?/rdbms/admin/catalog
@?/rdbms/admin/catproc
create tablespace...
create rollback segments...
The controlfiles are specified in your init file and will be created by 'create database'
The redologs are specified in your 'create database'.
You need to read the Oracle documentation provided on the documentation CD provided with the software to decide what you want to specify in 'create database' etc.
Once you've created the database, you can run import to populate it with data from the 8.1.6 export. There are many ways of running import, you pays your money and takes your choice...
The above is an outline of the tasks involved, if you don't have access to a DBA then you've got a lot of reading to do!
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 03:55 AM
тАО11-13-2002 03:55 AM
Re: oracle database creation
check this doc for creating the database
http://www.vi.unizh.ch/oracle8i_816/onlinedocu/doc/server.816/a76956/create.htm#1656
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 04:02 AM
тАО11-13-2002 04:02 AM
Re: oracle database creation
The easy way out is this:
Run the dbca assistant. This is a Java wizard that lets you set up the database whitout createing the scripts yourself.
To run:
export DISPLAY=yourworkstation:0.0
cd $ORACLE_HOME/bin/
./dbca
Fill in all the windows and the dbca can create the database for you.
BUT
what you should do is to select "Create script" in the last window.
This saves the create scripts for the database in a given location.
You can the edit and run these scripts one by one to have full controll over your database (as you should)
When the database is created and up and running you can create the user that holds the schema you'll import from the old database.
Remeber to create this with the same rights.
Then export the old schema from the 8.1.6 database using owner= parameter and import into the 9i database.
Import is then done to the same user. If you want it into another user use the fromuser touser parameters.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 05:48 AM
тАО11-13-2002 05:48 AM
Re: oracle database creation
If i want to create it in the CREATE DATABASE statement what is the correct syntax?
CREATE DATABASE blaba
LOGFILE ....
DEFAULT TABLESPACE system
DATAFILE'.../system.dbf' SIZE..
UNDO TABLESPACE undotbs
DATAFILE '...'
So in the statement i DON'T have to specify CONTROLFILE clause because it's created automatically by reading init$SID.ora??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2002 05:54 AM
тАО11-13-2002 05:54 AM
Re: oracle database creation
I aatched an example script to run as user SYS
(this is for an oracle8i instance)
change the string
adapt for file sizes.
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2002 09:03 AM
тАО11-14-2002 09:03 AM
Re: oracle database creation
do I have to create a system tablespace?
Yes, the system tablespace contains the data dictionary for all the data objects.
The control files contain information about the level of change in each of the tablespaces are are used in the recovery process to validate the database and they are created when the database is created.
As another respondent has already pointed out....
Use the dbca and look at the scripts created. Building a database from a command line is not an easy task without going through a series of scripts anyway to set up the various packages and data definitions in the system tablespace.
-Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2002 01:56 PM
тАО11-14-2002 01:56 PM
Re: oracle database creation
CREATE DATABASE X
DATAFILE '/x01/oradata/arch/system.dbf' SIZE 700M
character set "WE8ISO8859P1"
maxdatafiles 200
LOGFILE GROUP 1 ('/x01/oradata/arch/redoBAAN01.log') size 10M,
GROUP 2 ('/x01/oradata/arch/redoBAAN02.log') size 10M,
GROUP 3 ('/x01/oradata/arch/redoBAAN03.log') SIZE 10M;
create tablespace rbs datafile '/x01/oradata/BAAN/rbs01.dbf' size 5000M;
create tablespace temp datafile '/x01/oradata/BAAN/temp01.dbf' size 3000M;
create tablespace users datafile '/x01/oradata/BAAN/users01.dbf' size 200M;
create rollback segment r01 tablespace rbs storage (initial 500M next 500M maxex
tents unlimited);
create rollback segment r02 tablespace rbs storage (initial 500M next 500M maxex
tents unlimited);
create rollback segment r03 tablespace rbs storage (initial 500M next 500M maxex
tents unlimited);
create rollback segment r04 tablespace rbs storage (initial 500M next 500M maxex
tents unlimited);
create rollback segment r05 tablespace rbs storage (initial 500M next 500M maxex
tents unlimited);
@/usr/db/app/oracle/product/8.1.6/rdbms/admin/catalog
@/usr/db/app/oracle/product/8.1.6/rdbms/admin/catproc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2002 01:59 PM
тАО11-14-2002 01:59 PM