- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need oracle script(s) to generate a database
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
Forums
Discussions
Discussions
Discussions
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
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
03-08-2002 07:04 AM
03-08-2002 07:04 AM
Need oracle script(s) to generate a database
Please help me to clarify :
1. I have completed installed oracle 9i on my system. And I have started the database and edit
the oratab. However, when I tried to use sqlplus to login it gives me this error : NLS ...error.
here is the step that i did
su - oracle
echo $ORACLE_HOME
/u01/product/9.0.1
cd $ORACLE_HOME
sqlplus /nolog
SQL> connect SYSTEM/manager
error : NLS ....
Can someone help me with this problem...I have oracle 9i not 8 ...
2. I tested the start up the script, it said it has started completed
/sbin/init.d/oracle start
ps -ef | grep ora
3. Does any1 have any generic script that would give help to generate a database and write to them?
Thank you very much for your hel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2002 07:07 AM
03-08-2002 07:07 AM
Re: Need oracle script(s) to generate a database
http://www.dbaoncall.net/index_files/index_unix_scripts.html
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2002 07:09 AM
03-08-2002 07:09 AM
Re: Need oracle script(s) to generate a database
After some modifications it /might/ help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2002 02:53 AM
03-10-2002 02:53 AM
Re: Need oracle script(s) to generate a database
Use the script I posted in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x36ce94f22a31d6118fff0090279cd0f9,00.html
Modify with your preferences and run.
To enter data into this database you'll need to create a suiting table with the "create table" statament in sqlplus, and insert data with the "insert into" statement.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 07:54 AM
03-13-2002 07:54 AM
Re: Need oracle script(s) to generate a database
Thank you for sending the script.
I would like to ask you several questions prior of running this script.
1. I know that I have to make logical volumes
and not the filesystem. My question is this,
I just do the same old LVM stuff? without filesystem, I can't mount that data mount point?
2. How would I run this script in sqlplus ?
Thank you very much
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 02:47 PM
03-13-2002 02:47 PM
Re: Need oracle script(s) to generate a database
Last thing first; to runb scipt in SQL*Plus:
sqlplus sys/passwd as sysdba
SQL>@script
or
SQL>start script
second, I'm not sure what you mean by using LVM and not filesystem...
If you mean using Raw devices for the tablespaces, I'm not familiar with that.
Have even read that there isn't much to gain on using this, and by using filesystem / blockdevices instead you get much easier administration.
If using filesystem, you can set mount options to bypass the os buffering, as Oracle does its own buffering. Dont have the options here, but I'm sure someone in the forums have.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2002 04:15 PM
03-13-2002 04:15 PM
Re: Need oracle script(s) to generate a database
I had created the init
but i haven't do any link yet? would you help me on how to do it?
If that is the case using the filesystem, then i must mount these filesystems prior running
your script? I am currently running oracle 9i.
Can you go over this procedure on making the tablespaces to make sure i am on the right track?
pvcreate -f /dev/rdsk/xxxx
vgcreate /dev/vgxx /dev/dsk/xxxx
lvcreate -L size -n tablespace1 /dev/vgxx
(If I want to have 20 tablespaces, then I must
issued this command 20 times?)
newfs -F vxfs /dev/vgxx/rlvolxx
--- the software is located on /u01
and the database is on /u02
--- how do i mount this tablespace f/system to those ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 12:36 AM
03-14-2002 12:36 AM
Re: Need oracle script(s) to generate a database
Before creating the database you must have in place the different mount points for the filesystems. In my setup /u01 to /u07 where:
/u01: Data tablespaces and software
/u02: Data tablespaces
/u03: Index tablespaces
/u04: Redologs
/u05: Temporary and rollback
/u06: Redolog members
/u07: Archived redologs
(ops; my script doesn't follow this. Just edit to your preference)
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 02:52 PM
03-14-2002 02:52 PM
Re: Need oracle script(s) to generate a database
I have some questions in regards to your script
what does /u01 and /u03 and /u02 and /u05?
I noticed that this database is running with noachieved logs? why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 04:42 PM
03-14-2002 04:42 PM
Re: Need oracle script(s) to generate a database
Do all of those filesystem need to have the
init
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2002 11:56 PM
03-14-2002 11:56 PM
Re: Need oracle script(s) to generate a database
/u01/oradata/
You also place the Oracle software here under /u01/app/oracle/product/9.0.1
The pfile init.ora goes in /u01/app/oracle/admin/
/u03/oradata/
/u04 and /u06 is used for the mirrored redologs /member 1 on /u04 and member 2 in /u06
/u05 is used for creating the tablespaces that will contaion the rollback segments.
It is important to keep these parts of Oracle apart to aviod I/O botlenecks. During a DML to the database Oracle updates the rollbacksegment with read consistancy info so, then changes are made in the database buffer and written in the redolog and last the data in the table itself is changed. This means that data, rollback and redo disk aktivity must be separated.
As to you quiestion os noarchivelogs, its simply a matter of your backup policy. A development or test database do not need archiving, as you don't mind loosing data if some datafiles get lost (disk failure ..)
If you want to run with archiving its important to set the log_archive_dest to a disk different than the other Oracle volumes.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2002 12:12 AM
03-15-2002 12:12 AM
Re: Need oracle script(s) to generate a database
Seems like we've overtaken Diemanh's thread.. I wasn't awake I think...
Deanna, lets continue in your own posting.
Andreas