Home » Infrastructure » Unix » X server problem & creating a second database on HP-UX
X server problem & creating a second database on HP-UX [message #132648] Mon, 15 August 2005 08:53 Go to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Hi everyone,

I am a beginner Oracle DBA with very little experience on UNIX systems

1. I have an HP-UX server on which the database resides. I connected to it through my windows machine and tried to open dbca(database configuration assistant). But it gives me the following error message:
Exception in thread "main" java.lang.internalerror: Can't connect to X11 window server using 0.0 as the value of the DISPLAY.

I dont have an X-server running on my windows machine. Should I first install the X-server and set the DISPLAY variable to <ip addres>:0.0.(The DISPLAY variable has to be set in the .profile file of the $HOME directory of the Oracle user....right?)
What does the command "xhost +" do? PLease suggest the solution.

2. I have an oracle database already created on a hp-ux server. The .profile file in the $HOME directory(of the oracle user) contains the entry oracle_sid=<sid_name>.
Now, if I have to create another database on the same server, what modifications should be made and are there any special settings to be made on the server?

Please help me. It's very very urgentttttttt.

Thanks in advance,
Sankalpa
Re: X server problem & creating a second database on HP-UX [message #132682 is a reply to message #132648] Mon, 15 August 2005 11:47 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
you need an x window tool like exceed in your windows machine.
In unix set the display.
export DISPLAY=WINDOWSMACHINE_IP:0.0

To have a second database,
you can just set a new ORACLE_SID in environment or in profile.

export ORACLE_SID=newsid

Re: X server problem & creating a second database on HP-UX [message #132683 is a reply to message #132682] Mon, 15 August 2005 12:03 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Hi Mahesh,

You mean that I have to overwrite the oracle_sid value from the old one to the new one before creating the new database.
Earlier,the value was oracle_sid=db_old. Now, I need to change it to oracle_sid=db_new in .profile file. Right? And the when I connect to either of the database instance(db_old,db_new) on the server, the oracle_sid value does not matter, right?

On another issue, when we do a full import of the database, do we have to create the tablespaces or do they get created automatically? On the other hand, if we are performing a user-mode import, we have to create the tablespaces as well as the users in the target database..right?

Thanks,
Sankalpa
Re: X server problem & creating a second database on HP-UX [message #132687 is a reply to message #132683] Mon, 15 August 2005 12:48 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
It is just variable.
You need to have a new ORACLE_SID to create a new database.

>> And the when I connect to either of the database instance(db_old,db_new) on the server,
>>the oracle_sid value does not matter, right?
It does matter. Depends on how you connect.

if ORACLE_SID=db1
sqlplus scott/tiger #will connect to db1
if you want to connect to db2, when ORACLE_SID=db1 use
sqlplus scott/tiger@db2 #db2 is tnsconnection entry /servicename from tnsnames.ora

so when you are not using tnsservicename, you will be connected to the database defined by ORACLE_SID

>>On another issue, when we do a full import of the database,
>> do we have to create the tablespaces or do they get created automatically?
Full import will try to create tablespace and datafiles as it was found in dump file. SO the path may not match.
It is better to precreate the tablespaces and do import.



Re: X server problem & creating a second database on HP-UX [message #132818 is a reply to message #132687] Tue, 16 August 2005 06:38 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Let me make myself clear. I have changed the oracle_sid varibale in .profile file to the new database to be created(new_db). When I connect(from my windows machine to the databases on the unix server) to the old datbase(old_db) using the command connect system/manager@old_db, or to the new database using connect system/manager@new_db, the oracle_sid value in the .profile file does not matter...right? Could you please explain the significance of .profile file and the oracle_sid variable in it?

Also, could you please suggest an X-window tool for download. I downloaded one from www.startnet.com. But since it is a demo version, the session ends and it gets disonnected after half hour which does not serve the purpose. Please suggest a reliable tool.

Thanks,
Sankalpa
Re: X server problem & creating a second database on HP-UX [message #132823 is a reply to message #132818] Tue, 16 August 2005 06:57 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
for x-windows use exceed.
or
Dump the crappy windows pc and go for Linux. You do not need any additional tool ( I am 100% on linux. Have no problems).
.profile is the file read by unix everytime you login.
all variables/commands set in .profile is executed.
you can override it by setting again ORACLE_SID in your session explicitly. all you nned to do is create listener(s) for datbases old_db and new_db and you can talk to them at anytime you want.
Re: X server problem & creating a second database on HP-UX [message #132824 is a reply to message #132823] Tue, 16 August 2005 07:02 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Ok. Thanks for the reply.
While doing a user-mode import, should we create the tablespaces in the target databases with the same name as in the source database or it does not matter what we name them?
Re: X server problem & creating a second database on HP-UX [message #132825 is a reply to message #132824] Tue, 16 August 2005 07:04 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
does not matter.
make the tablespace as default to the user.
Do NOT give resource role.
Your lobsegments may fail ( if you use any)
extract ddl and recreate them.

[Updated on: Tue, 16 August 2005 07:21]

Report message to a moderator

Re: X server problem & creating a second database on HP-UX [message #132830 is a reply to message #132825] Tue, 16 August 2005 07:16 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Jus making sure. Assuming user1 is the user from which we are importing:
Create a tablespace(naming it anything) on the target database; create the user(say user2) and make the ts we jus created default to the user. Grant resource role to the user2.
Then run the command:
imp system/manager@targetdb fromuser=user1 touser=user2 ignore=y file=exp_user1.dmp log=imp_user2.log

Will this serve the purpose?

Btw I am downloading exceed2006 evaluation version from http://www.hummingbird.com
Re: X server problem & creating a second database on HP-UX [message #132836 is a reply to message #132830] Tue, 16 August 2005 07:25 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>Grant resource role to the user2.

There was a typo in my above posting.
I fixed it.
My apologies.
Do not give resource role.
Resource role enables the user to write to any available tablespace.
in source db, you have tablespaces tools and tab1.
tables are spread across tools and tab1.
in target db, you have tablespaces users and tools.
You want all tables in tools.
if you give resource role, the user has rights to write into any tablespace.
so do not give resource role.
make tab1 as default tablespace with unlimited quota.
do import.



Re: X server problem & creating a second database on HP-UX [message #132842 is a reply to message #132836] Tue, 16 August 2005 07:36 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
What roles should we grant after creating the user?
Re: X server problem & creating a second database on HP-UX [message #132846 is a reply to message #132842] Tue, 16 August 2005 07:43 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
connect role.
and anyother specific you have.
Re: X server problem & creating a second database on HP-UX [message #133235 is a reply to message #132846] Thu, 18 August 2005 03:21 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Hi Mahesh,

I have managed to create the database on the HP-UX server. I changed the oracle_sid(in the .profile file) to the new database and created the database through dbca(I installed exceed on my windows m/c and connected to the unix server).Also, I performed a user import to the new database. Now I have a strange problem. I connected to the database on the server from my windows client machine. Whenever I use the describe command on any table, it gives me ORA-03113: end-of-file on communication channel error. And, after this happens, it does not let me query any tables or views and it gives me the ORA-03114: not connected to ORACLE error. You can have a look at the SQL statements for the same given below:

C:\>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on Wed Aug 17 12:31:00 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect user/user@db1
Connected.

SQL> select count(*) from table1;

COUNT(*)
----------
10

SQL> desc table1
ERROR:
ORA-03113: end-of-file on communication channel

SQL> select count(*) from table1;
select count(*) from table1
*
ERROR at line 1:
ORA-03114: not connected to ORACLE

Could you please tell me what is going wrong here? I dont have any problem as such with my old database on the server. The problem is only with the new database that I just created. Please suggest me the solution.

Thanks & Regards,
Sankalpa
Re: X server problem & creating a second database on HP-UX [message #133291 is a reply to message #133235] Thu, 18 August 2005 07:24 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
SQL> select count(*) from table1;

COUNT(*)
----------
10

SQL> desc table1
ERROR:
ORA-03113: end-of-file on communication channel

In-time Between these two commands, your database was not available for public usage.
There should be some information in your $ORACLE_BASE/admin/your_sid/bdump/alert_your_sid.log.
Post the relevant information.
You might see some core/memory dumps.
Re: X server problem & creating a second database on HP-UX [message #133359 is a reply to message #133291] Thu, 18 August 2005 11:24 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
But there is no problem when I give a select command. I can select any rows from any table. The problem comes up only when I give a describe command. And after I give the describe command, I get these ORA-03113 and ORA-03114 messages
Re: X server problem & creating a second database on HP-UX [message #133360 is a reply to message #133359] Thu, 18 August 2005 11:29 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Whatever.
There should be some core dumps reported in your alert_sid.log.
That should give you more information.
Re: X server problem & creating a second database on HP-UX [message #133490 is a reply to message #133360] Fri, 19 August 2005 06:05 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
How do we change the $HOME environment variable to a different directory? Also how do we use the SAM utility to set the value of SHMMAX on HP-UX(or any other method to set the value of SHMMAX)
Re: X server problem & creating a second database on HP-UX [message #133505 is a reply to message #133490] Fri, 19 August 2005 07:08 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Why do you want to move oracle_home?
It is a little painful. THis URL talks about it ( Oracle version discussed is OLD. Still the concepts apply)
http://64.233.161.104/search?q=cache:7F_Asxrd4MoJ:www.fors.com/orasupp/unix/28433_1.HTM+Move+%24ORACLE_HOME++&hl=en
Re: X server problem & creating a second database on HP-UX [message #133528 is a reply to message #133505] Fri, 19 August 2005 08:15 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
No. No. I am not talking about ORACLE_HOME. I need to change the $HOME variable. It is currently pointing to a path which does not exist and I would like to change it.
Re: X server problem & creating a second database on HP-UX [message #133529 is a reply to message #133528] Fri, 19 August 2005 08:18 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
so?
just change it to anywhere you want.
edit .profile
or
export $HOME.
If you are talking about your oracle user default home like
/home/user1
or
/export/home/user

talk to your unix admin.

Re: X server problem & creating a second database on HP-UX [message #133631 is a reply to message #133529] Sat, 20 August 2005 06:26 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Following my question regarding the ORA-03113 and ORA-03114 errors, please find the following error message recorded in the alert_db1.log :

Errors in file /u01/oracle_home/OraHome1/rdbms/log/db1_ora_22805.trc:
ORA-07445: exception encountered: core dump [0000000000000000] [SIGSEGV] [Invalid permissions for mapped object] [0x000000000] [] []

The file db1_ora_22805.trc has the following contents towards its end:
KSTDUMP: End of in-memory trace dump
ssexhd: crashing the process...
Shadow_Core_Dump = PARTIAL

Please advise.
Re: X server problem & creating a second database on HP-UX [message #133640 is a reply to message #133631] Sat, 20 August 2005 09:12 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
some of your semaphore settings are not happy.
Post your OS, oracle version and semaphore settings.
or
It may also be a bug.
Re: X server problem & creating a second database on HP-UX [message #133641 is a reply to message #133640] Sat, 20 August 2005 09:24 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
What do you mean by semaphore settings and where can I find them?
Re: X server problem & creating a second database on HP-UX [message #133642 is a reply to message #133641] Sat, 20 August 2005 09:29 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Btw following are the RDBMS and OS settings
Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
System name: HP-UX
Release: B.11.23
Version: U
Machine: ia64
Re: X server problem & creating a second database on HP-UX [message #133643 is a reply to message #133641] Sat, 20 August 2005 09:31 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Refer Oracle Documentation (Oracle Installation Manual for your OS).
UNIX OS needs some memory setting.
Depending on your OS you may need to change the default.
Assuming you are using HP-UX
http://download-east.oracle.com/docs/html/A96167_01/toc.htm
Re: X server problem & creating a second database on HP-UX [message #133670 is a reply to message #133643] Sun, 21 August 2005 06:17 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
This was the output of the ipcs command for the semaphore settings:

# ipcs
IPC status from /dev/kmem as of Sun Aug 21 08:34:09 2005
T ID KEY MODE OWNER GROUP
Message Queues:
q 0 0x3c1c01ad -Rrw--w--w- root root
q 1 0x3e1c01ad --rw-r--r-- root root
Shared Memory:
m 8192 0x411c0140 --rw-rw-rw- root sys
m 8193 0x4e0c0002 --rw-rw-rw- root sys
m 8194 0x41201cc1 --rw-rw-rw- root sys
m 172035 0x5e100037 --rw------- root root
m 729092 0x0492b1cc --rw-rw---- oracle oinstall
m 8197 0x1575735c --rw-rw---- oracle oinstall
Semaphores:
s 0 0x4f1c027f --ra------- root root
s 4097 0x411c0140 --ra-ra-ra- root sys
s 4098 0x4e0c0002 --ra-ra-ra- root sys
s 4099 0x41201cc1 --ra-ra-ra- root sys
s 4 0x00446f6e --ra-r--r-- root root
s 5 0x00446f6d --ra-r--r-- root root
s 6 0x01090522 --ra-r--r-- root root
s 7 0x411c6eeb --ra-ra-ra- root root
s 8 0x6120149b --ra-ra-ra- root root
s 9 0x7320149b --ra-ra-ra- root root
s 10 0x7020149b --ra-ra-ra- root root
s 11 0x6920149b --ra-ra-ra- root root
s 12 0x7520149b --ra-ra-ra- root root
s 13 0x6320149b --ra-ra-ra- root root
s 14 0x6420149b --ra-ra-ra- root root
s 15 0x6620149b --ra-ra-ra- root root
s 16 0x6c20149b --ra-ra-ra- root root
s 17 0x6d20149b --ra-ra-ra- root root
s 18 0x6f20149b --ra-ra-ra- root root
s 19 0x410c0524 --ra-ra-ra- root root
s 20 0x00000001 --ra-ra-ra- root root
s 21 0x5220149b --ra-ra-ra- root root
s 12310 0x2d16f66c --ra-ra---- oracle oinstall
s 28695 0x0e6b9020 --ra-ra---- oracle oinstall
Re: X server problem & creating a second database on HP-UX [message #133678 is a reply to message #133670] Sun, 21 August 2005 08:33 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
whatever you have posted, is of no use to me.
did you read the documentation?
entries should be found in /etc/system ( Not sure about HP-UX).
Make sure you have the recomended ones.
Google / search this site for more tips
Re: X server problem & creating a second database on HP-UX [message #133785 is a reply to message #132648] Mon, 22 August 2005 04:08 Go to previous messageGo to next message
vadik77
Messages: 3
Registered: July 2005
Junior Member
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=827733
Re: X server problem & creating a second database on HP-UX [message #133838 is a reply to message #133785] Mon, 22 August 2005 06:51 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
That was an informative link sent by vadik77.
Just to be on the safe side, could someone please have a look at my kernel settings(I have two instances running on the system). The values in the brackets are calculated as per the installation documentation. Please advise if any of the values need to be changed

ksi_alloc_max 33600 (32768)
max_thread_proc 256
maxdsiz 1073741824
maxdsiz_64bit 4294967296 (2147483648)
maxssiz 134217728
maxssiz_64bit 1073741824
maxuprc 256 (((NPROC*9)/10) = 3686.4)
msgmap 1026 (msgtql+2=4098)
msgmni 4096
msgseg 16384 (32767)
msgtql 4096
ncsize 35328
nfile 63488
nflocks 4096
ninode 34816 (32976)
nkthread 8416 (7184)
nproc 4096
semmni 4096
semmns 16384 (semmni*2=8192)
semmnu 4092
semvmx 32767 (32768)
shmmax 3073741824
shmmni 400
shmseg 300
vps_ceiling 64
Re: X server problem & creating a second database on HP-UX [message #133842 is a reply to message #133838] Mon, 22 August 2005 07:00 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator

The settings should be atleast this minimum.

http://download-east.oracle.com/docs/html/A96167_01/pre.htm#CHDCJDHI

do the changes.
Reboot the system.
try again.

[Updated on: Mon, 22 August 2005 07:01]

Report message to a moderator

Re: X server problem & creating a second database on HP-UX [message #133847 is a reply to message #133842] Mon, 22 August 2005 07:12 Go to previous messageGo to next message
orcl dba
Messages: 68
Registered: August 2005
Member
Most of them are dynamic parameters(as per the SAM utility in HP-UX). Do you think we have to reboot the system after the changes?
Re: X server problem & creating a second database on HP-UX [message #133848 is a reply to message #133847] Mon, 22 August 2005 07:14 Go to previous message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Ofcourse YES.
Previous Topic: DATE - DATE
Next Topic: How to get the result from plsql stored procedure in UNIX
Goto Forum:
  


Current Time: Mon Nov 25 21:33:28 CST 2024