- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Addition adding a new database
Operating System - HP-UX
1753818
Members
8457
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО06-28-2002 09:28 PM
тАО06-28-2002 09:28 PM
Re: Addition adding a new database
You can use the $ORACLE_HOME/bin/dbassist to create the new database.
YOu have a good GUI kind of creating a database where you can select the options.
Else
you should do as
1.copy the initialization file to the new instance.
$cp $ORACLE_HOME/dbs/init.ora init"".ora
2.Edit the init"instance-name".ora
to change the database_name
and set the values for the Shared_pool_size,DB_BLOCK_BUFFERS,etc..
Also change the location of your control files to the location you want to.
save the file
3.set you ORACLE_SID parameter to the new instance name.
eg.ORACLE_SID=DB001;export ORACLE_SID
check the value of the ORACLE_SID whether it is set properly.
echo $ORACLE_SID
4.$svrmgrl
svrmgr>connect internal
svrmgr>startup nomount pfile=$ORACLE_HOME/dbs/init"newinstance-name".ora
Now your instance will be started
svrmgr>create database "database-name"
>controlfile reuse
>datafile ' >logfile group 1 ('oracle_home/dbs/log1NEW_NAME.dbf') size 10 M,
> group 2 ('oracle_home/dbs/log2NEW_NAME.dbf') size 10 M
check for the size for your database.
The datafile created is for the default system tablespace.
now after the database is created,you have to run the catalog.sql and catproc.sql
svrmgr>@$ORACLE_HOME/rdbms/admin/catalog
svrmgrl>@$ORACLE_HOME/rdbms/admin/catproc
After you run the two scripts.
create a seperate tablespace for rollback segment
svrmgr>create tablespace rollback datafile '/home/oracle/rollback.dbf' size 100 M;
svrmgrl>create rollback segment R01 tablespace rollback storage(maxextents unlimited);
svrmgrl>alter rollback segment R01 online;
Now the rollback segment is created .
Now make the entry in the
$ORACLE_HOME/dbs/init"new-instance".ora
In that enter R01 in the place of the
rollback segment in the file.
create the required tablespace ,like if you require user tablespace
like the one for the rollback segment.
Thanks
YOu have a good GUI kind of creating a database where you can select the options.
Else
you should do as
1.copy the initialization file to the new instance.
$cp $ORACLE_HOME/dbs/init.ora init"
2.Edit the init"instance-name".ora
to change the database_name
and set the values for the Shared_pool_size,DB_BLOCK_BUFFERS,etc..
Also change the location of your control files to the location you want to.
save the file
3.set you ORACLE_SID parameter to the new instance name.
eg.ORACLE_SID=DB001;export ORACLE_SID
check the value of the ORACLE_SID whether it is set properly.
echo $ORACLE_SID
4.$svrmgrl
svrmgr>connect internal
svrmgr>startup nomount pfile=$ORACLE_HOME/dbs/init"newinstance-name".ora
Now your instance will be started
svrmgr>create database "database-name"
>controlfile reuse
>datafile '
> group 2 ('oracle_home/dbs/log2NEW_NAME.dbf') size 10 M
check for the size for your database.
The datafile created is for the default system tablespace.
now after the database is created,you have to run the catalog.sql and catproc.sql
svrmgr>@$ORACLE_HOME/rdbms/admin/catalog
svrmgrl>@$ORACLE_HOME/rdbms/admin/catproc
After you run the two scripts.
create a seperate tablespace for rollback segment
svrmgr>create tablespace rollback datafile '/home/oracle/rollback.dbf' size 100 M;
svrmgrl>create rollback segment R01 tablespace rollback storage(maxextents unlimited);
svrmgrl>alter rollback segment R01 online;
Now the rollback segment is created .
Now make the entry in the
$ORACLE_HOME/dbs/init"new-instance".ora
In that enter R01 in the place of the
rollback segment in the file.
create the required tablespace ,like if you require user tablespace
like the one for the rollback segment.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 09:28 PM
тАО06-28-2002 09:28 PM
Re: Addition adding a new database
You can use the $ORACLE_HOME/bin/dbassist to create the new database.
YOu have a good GUI kind of creating a database where you can select the options.
Else
you should do as
1.copy the initialization file to the new instance.
$cp $ORACLE_HOME/dbs/init.ora init"".ora
2.Edit the init"instance-name".ora
to change the database_name
and set the values for the Shared_pool_size,DB_BLOCK_BUFFERS,etc..
Also change the location of your control files to the location you want to.
save the file
3.set you ORACLE_SID parameter to the new instance name.
eg.ORACLE_SID=DB001;export ORACLE_SID
check the value of the ORACLE_SID whether it is set properly.
echo $ORACLE_SID
4.$svrmgrl
svrmgr>connect internal
svrmgr>startup nomount pfile=$ORACLE_HOME/dbs/init"newinstance-name".ora
Now your instance will be started
svrmgr>create database "database-name"
>controlfile reuse
>datafile ' >logfile group 1 ('oracle_home/dbs/log1NEW_NAME.dbf') size 10 M,
> group 2 ('oracle_home/dbs/log2NEW_NAME.dbf') size 10 M
check for the size for your database.
The datafile created is for the default system tablespace.
now after the database is created,you have to run the catalog.sql and catproc.sql
svrmgr>@$ORACLE_HOME/rdbms/admin/catalog
svrmgrl>@$ORACLE_HOME/rdbms/admin/catproc
After you run the two scripts.
create a seperate tablespace for rollback segment
svrmgr>create tablespace rollback datafile '/home/oracle/rollback.dbf' size 100 M;
svrmgrl>create rollback segment R01 tablespace rollback storage(maxextents unlimited);
svrmgrl>alter rollback segment R01 online;
Now the rollback segment is created .
Now make the entry in the
$ORACLE_HOME/dbs/init"new-instance".ora
In that enter R01 in the place of the
rollback segment in the file.
create the required tablespace ,like if you require user tablespace
like the one for the rollback segment.
Thanks
YOu have a good GUI kind of creating a database where you can select the options.
Else
you should do as
1.copy the initialization file to the new instance.
$cp $ORACLE_HOME/dbs/init.ora init"
2.Edit the init"instance-name".ora
to change the database_name
and set the values for the Shared_pool_size,DB_BLOCK_BUFFERS,etc..
Also change the location of your control files to the location you want to.
save the file
3.set you ORACLE_SID parameter to the new instance name.
eg.ORACLE_SID=DB001;export ORACLE_SID
check the value of the ORACLE_SID whether it is set properly.
echo $ORACLE_SID
4.$svrmgrl
svrmgr>connect internal
svrmgr>startup nomount pfile=$ORACLE_HOME/dbs/init"newinstance-name".ora
Now your instance will be started
svrmgr>create database "database-name"
>controlfile reuse
>datafile '
> group 2 ('oracle_home/dbs/log2NEW_NAME.dbf') size 10 M
check for the size for your database.
The datafile created is for the default system tablespace.
now after the database is created,you have to run the catalog.sql and catproc.sql
svrmgr>@$ORACLE_HOME/rdbms/admin/catalog
svrmgrl>@$ORACLE_HOME/rdbms/admin/catproc
After you run the two scripts.
create a seperate tablespace for rollback segment
svrmgr>create tablespace rollback datafile '/home/oracle/rollback.dbf' size 100 M;
svrmgrl>create rollback segment R01 tablespace rollback storage(maxextents unlimited);
svrmgrl>alter rollback segment R01 online;
Now the rollback segment is created .
Now make the entry in the
$ORACLE_HOME/dbs/init"new-instance".ora
In that enter R01 in the place of the
rollback segment in the file.
create the required tablespace ,like if you require user tablespace
like the one for the rollback segment.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2002 09:39 PM
тАО06-28-2002 09:39 PM
Re: Addition adding a new database
sorry,
I clicked twice as the post was not submitted.
So many times....
Sorry
I clicked twice as the post was not submitted.
So many times....
Sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2002 05:44 AM
тАО07-01-2002 05:44 AM
Re: Addition adding a new database
Don't forget to update your /etc/oratab file to add the new database also. If you don't, it will not start and stop on reboot. In addition, some of the env file use it to get the ORACLE_HOME of the database, etc.
I have my env set up to prompt me for the database and then set my env variables appropriately. Here are the lines I added to my .profile to do the prompting and then call the oraenv script:
# Set up the Oracle environment
SIDLIST=`awk -F: '/^[^#]/{printf "%s ",$1}' /etc/oratab`
echo "SIDs on this machine are: $SIDLIST"
ORAENV_ASK=
. /usr/local/bin/oraenv
Hope this helps
I have my env set up to prompt me for the database and then set my env variables appropriately. Here are the lines I added to my .profile to do the prompting and then call the oraenv script:
# Set up the Oracle environment
SIDLIST=`awk -F: '/^[^#]/{printf "%s ",$1}' /etc/oratab`
echo "SIDs on this machine are: $SIDLIST"
ORAENV_ASK=
. /usr/local/bin/oraenv
Hope this helps
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP