Newbie: Starting an Oracle Database on Linux
I am doing support for an Oracle Database installed on Red Hat. My problem is that I do not know how to start the oracle database. I had to reboot the Linux box and the database did not restart.
What do I need to do to start the database?
Also the Linux does not have the GUI installed, I am working from the command prompt.
Any help is greatly appreciated.
Thanks in advance.
Ray
if u are using oracle 8i, you can use de command:
$svrmgrl
svrmgrl> startup;
if u are using 9i:
$sqlplus /nolog
sqlplus>connect /as sysdba;
sqlplus> startup;
Hope this helps.
Cynthia Pulido
Monterrey, Mexico
[email protected]
Similar Messages
-
Auto Start/Stop Oracle Database Lintener DBConslone on Linux
Dear all
I have install oracle 10.2.0 on redhat 4.7 every time i have to start manualy.
it try with following scrip / process but database not starting automatically.
Please any one can provide steps for auto start and stop oracel services on RedHat 4.7
Once the instance is created, edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
TSH1:/u01/app/oracle/product/10.2.0:Y
Next, create a file called "/etc/init.d/dbora" as the root user, containing the following.
#!/bin/bash
#chkconfig: 345 95 10
#description: init script to start/stop oracle database 10g, TNS listener, EMS and isqlplus
case $1 in
start)
su - oracle -c 'lsnrctl start'
su - oracle -c 'dbstart'
su - ora10g -c 'isqlplusctl start'
su - oracle -c 'emctl start dbconsole'
stop)
su - oracle -c 'emctl stop dbconsole'
su - oracle -c 'isqlplusctl stop'
su - oracle -c 'dbshut'
su - oracle -c 'lsnrctl stop'
restart)
su - oracle -c 'emctl stop dbconsole'
su - oracle -c 'isqlplusctl stop'
su - oracle -c 'dbshut'
su - oracle -c 'lsnrctl stop'
su - oracle -c 'lsnrctl start'
su - oracle -c 'dbstart'
su - ora10g -c 'isqlplusctl start'
su - oracle -c 'emctl start dbconsole'
esac
create service on linux
Actions >> System Settings >> Server Settings >> Services Then
Actions >> Add Service Then
Service Name = dbora Then Press Ok
chmod a+x /etc/init.d/dbora
Check is it running this service properly
service dbora stop
service dbora start
showing error
:bad interperter : no such file or directory
Please forward me process/steps for auto start/stop oracel services:bad interperter : no such file or directorymeans that it could not find the interpreter which should be used to interpret the script.
most probably this is caused by the shebang (#!/bin/bash)
the default location of bash on RHEL (OEL/CentOS) is /bin/bash, which means that the shebang looks correct.
can you make the shebang:
#!/bin/bash -xso shelltracing is put on and execute script again?
this will make clear if it is the shebang in your script, or in another script. -
Not able to start the oracle database with ASM
HI all,
WE are using oracle10.2.0.1 on OEL5.
I have mounted ASM but when i try to start the oracle database, it is asking "db is already started shut it down first"
[root@localhost ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
[root@localhost ~]#
[root@localhost ~]# su - oracle
-bash-3.2$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 31 02:12:06 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> shutdown
ORA-01012: not logged on
SQL> startp mount
SP2-0734: unknown command beginning "startp mou..." - rest of line ignored.
SQL> conn / as sysdba
Connected.
SQL> shutdown
ASM diskgroups dismounted
ASM instance shutdown
SQL> startup mount
ASM instance started
Total System Global Area 130023424 bytes
Fixed Size 2019032 bytes
Variable Size 102838568 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
-bash-3.2$ export ORACLE_SID=dbtest
-bash-3.2$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 31 02:13:30 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> exit
-bash-3.2$ cd /u01/app/oracle/admin/dbtest/pfile/
-bash-3.2$ ls -l
total 8
-rw-r----- 1 oracle oinstall 2442 May 27 23:07 init.ora.427201023913
-rw-r--r-- 1 oracle oinstall 1406 May 31 01:44 sqlnet.log
-bash-3.2$ pwd
/u01/app/oracle/admin/dbtest/pfile
-bash-3.2$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 31 02:14:00 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> exit
-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 31 02:14:09 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> startup pfile="/u01/app/oracle/admin/dbtest/pfile/init.ora.427201023913';
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL>
-bash-3.2$ ps -ef|grep ora
root 5501 5483 0 00:32 ? 00:00:00 hald-addon-storage: polling /dev/hdc
root 6333 1 0 00:32 ? 00:00:00 /bin/su -l oracle -c sh -c 'cd /u01/app/oracle/product/10.1.0/db_1/log/localhost/cssd; ulimit -c unlimited; exec /u01/app/oracle/product/10.1.0/db_1/bin/ocssd '
oracle 6527 6333 0 00:33 ? 00:00:00 /u01/app/oracle/product/10.1.0/db_1/bin/ocssd.bin
oracle 6849 1 0 00:49 ? 00:00:00 /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr LISTENER -inherit
root 7637 7617 0 01:53 pts/2 00:00:00 su - oracle
oracle 7638 7637 0 01:53 pts/2 00:00:00 -bash
root 7751 6763 0 02:11 pts/1 00:00:00 su - oracle
oracle 7752 7751 0 02:11 pts/1 00:00:00 -bash
oracle 7773 1 0 02:12 ? 00:00:00 oracledbtest (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 7777 1 0 02:13 ? 00:00:00 asm_pmon_dbtest
oracle 7779 1 0 02:13 ? 00:00:00 asm_psp0_dbtest
oracle 7781 1 0 02:13 ? 00:00:00 asm_mman_dbtest
oracle 7783 1 0 02:13 ? 00:00:00 asm_dbw0_dbtest
oracle 7785 1 0 02:13 ? 00:00:00 asm_lgwr_dbtest
oracle 7787 1 0 02:13 ? 00:00:00 asm_ckpt_dbtest
oracle 7789 1 0 02:13 ? 00:00:00 asm_smon_dbtest
oracle 7791 1 0 02:13 ? 00:00:00 asm_rbal_dbtest
oracle 7793 1 0 02:13 ? 00:00:00 asm_gmon_dbtest
oracle 7805 7752 0 02:15 pts/1 00:00:00 ps -ef
oracle 7806 7752 0 02:15 pts/1 00:00:00 grep ora
-bash-3.2$
{code}
so anybody can help me how to start the oracle database....-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 31 02:26:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> show parameter instance
NAME TYPE VALUE
active_instance_count integer
cluster_database_instances integer 1
instance_groups string
instance_name string dbtest
instance_number integer 0
instance_type string asm
open_links_per_instance integer 4
parallel_instance_group string
parallel_server_instances integer 1
SQL>
-bash-3.2$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 31 02:26:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> show paramete instance_name
SP2-0158: unknown SHOW option "paramete"
instance "local"
SP2-0158: unknown SHOW option "_name"
SQL> show parameter instance
NAME TYPE VALUE
active_instance_count integer
cluster_database_instances integer 1
instance_groups string
instance_name string dbtest
instance_number integer 0
instance_type string asm
open_links_per_instance integer 4
parallel_instance_group string
parallel_server_instances integer 1
SQL>
-bash-3.2$ ps -ef|grep pmon
oracle 7777 1 0 02:13 ? 00:00:00 asm_pmon_dbtest
oracle 7851 7752 0 02:32 pts/1 00:00:00 grep pmon
-bash-3.2$
-bash-3.2$ -
Download Advance Chapter: Oracle Database 10g Linux Administration
A new "betabook" chapter of Wim Coekaerts' and Ed Whalen's "Oracle Database 10g Linux Administration" -- this one focusing on installation -- is available for download from OTN. Plus, you can discuss your thoughts and with the authors themselves. Check it out!
http://otn.oracle.com/books/betabooks/index.htmlPlease don't cross post on many forums,
check where can i download a vmware image of redhat and oracle preinstalled? -
Can't mount oracle database on linux system
This is same as previous posting just added
e-mail and username info fo forum posting.
I am not able to mount an Oracle database.
I am new to Oracle and am working on an Oracle8i installation on an
Intel Linux Suse 6.3 platform. I am using only one harddrive and am
not using the 4 mount points as mentioned for efficiecy purposes in
the Oracle documentation..I am using the installation cd from Oracle8i
for Linux Starter Kit by Oracle Press. If anyone has this book they
can refer to pages 41-44 for the examples I followed.
As sysdba in sqplplus using the STARTUP command I can not Mount the
database -step 2 of the 3 stage process (Start, Mount and Open the
database) of opening an Oracle database.
I show the errors I encountered when I did the first 2 of the 3 steps
in the step-by-step mode (STARTUP NOMOUNT pfile=, ALTER DATABASE
MOUNT) in the sqlplus session and alert log respectively with startup
nomount and alter database mount for this sqlplus session.
Additionally I show the init.ora file lines referring to control file
which seem to be referred to by the sqlplus error messages and the
alert.log file. Perhaps some can give me some advice as what I can try
to fix this problem.
At the end of this e-mail I added several questions I had in regard to the control
files. Any help is appreciated.
Well, here are the sqlplus session results and its alert.log file:
Oracle sqlplus session usr/oracle as sysdba
oracle@CHESTNUT:~ > sqlplus
SQL*Plus: Release 8.1.6.0.0 - Production on Mon Mar 19 20:47:49 2001
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter user-name: usr/oracle as sysdba
Connected to an idle instance.
SQL> startup nomount pfile=/usr/oracle/dbs/init.ora ;
ORACLE instance started.
Total System Global Area 24989680 bytes
Fixed Size 69616 bytes
Variable Size 24637440 bytes
Database Buffers 204800 bytes
Redo Buffers 77824 bytes
SQL> alter database mount ;
alter database mount
ERROR at line 1:
ORA-00205: error in identifying controlfile, check alert log for more
info
SQL> shutdown immediate ;
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> exit
Disconnected
oracle@CHESTNUT:~ >
alert.log file for above session
Mon Mar 19 20:48:38 2001
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
LICENSE_MAX_USERS = 0
Starting up ORACLE RDBMS Version: 8.1.6.1.0.
System parameters with non-default values:
processes = 50
shared_pool_size = 3500000
control_files = ora_control1, ora_control2
db_block_buffers = 100
log_buffer = 32768
log_checkpoint_interval = 10000
db_files = 80
db_file_multiblock_read_count= 8
global_names = TRUE
db_name = DEFAULT
parallel_max_servers = 5
max_dump_file_size = 10240
PMON started with pid=2
Load Indicator not supported by OS !
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
Mon Mar 19 20:48:58 2001
alter database mount
Mon Mar 19 20:48:58 2001
ORA-00202: controlfile: 'ora_control1'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
Mon Mar 19 20:49:01 2001
ORA-205 signalled during: alter database mount
Mon Mar 19 20:49:12 2001
Shutting down instance (immediate)
License high water mark = 1
Mon Mar 19 20:49:12 2001
ALTER DATABASE CLOSE NORMAL
ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
archiving is disabled
init.ora control files
# define two control files by default
control_files = (ora_control1, ora_control2)
Here are my control file questions:
I need to know several points:
1) What are control files susposed to
contain and how would I recognize them?
I used the
unix find /usr/oracle \*ctl* -print
command to locate files with a ctl extension.
This resulted in about a dozen such files in
different directories as shown below:
./bin/lsnrctl
./bin/extractlib
./bin/agtctl
./bin/oidctl
./bin/lsnrctl0
./bin/agtctlO
./rdbms/demo/ulcase1.ctl
./rdbms/demo/ulcase10.ctl
./rdbms/demo/ulcase2.ctl
./rdbms/demo/ulcase3.ctl
./rdbms/demo/ulcase4.ctl
./rdbms/demo/ulcase5.ctl
./rdbms/demo/ulcase6.ctl
./rdbms/demo/ulcase7.ctl
./rdbms/demo/ulcase8.ctl
./rdbms/demo/ulcase9.ctl
./ldap/load/dn.ctl
./ldap/load/attr_store.ctl
./ord/ts/demo/tsquick/tsquick.ctl
./ord/ts/demo/usageutl/utildat.ctl
./ord/ts/demo/usage/stockdat.ctl
./ord/ts/demo/usage/stockinc.ctl
./ord/ts/demo/retrofit/sales.ctl
./ord/ts/demo/retrofit/sales2.ctl
./ord/ts/demo/applet/indexdemo.ctl
./javavm/admin/libjox8com_sun_jndi_ldap_ctl.so
./md/demo/examples/migctl.h
./md/demo/examples/migctl.c
2) On page 100 in the book Oracle 8i A Beginners's
by Oracle Press mention is made of a
CREATE CONTROLFILE command that can under
circumstances be used to re-create a control-file.
but that is all that is said about it. Perhaps
you might know something more about it.
3) Would you recommend any good text for
Oracle DBA's, especially for the problem of the sort
that I am encountering?
[email protected]
nullIt's probably not supported on RHEL5/Centos5/etc., but...
You can get the installer to function using the following steps:
- extract the cal_linux_*.tar.gz, and cd into the OracleCalendar_inst directory
In there is the actual installer, cal_linux.
- the cal_linux is shell script wrapped around some binary blobs. The installer's
problem is that Oracle is setting the LD_ASSUME_KERNEL=2.2.5 environment
variable, which is a mistake on RHEL5. You need to make it not set that variable,
but you need to do so in a way that the size of the shell script does not change at all,
and none of the binary blobs are impacted.
- the approach I took was
mv cal_linux cal_linux.BAK
sed -e 's/LD_ASSUME_KERNEL=2.2.5/LD_ASSUME_KERNEL= /g' < cal_linux.BAK > cal_linux
chmod a+rx cal_linux
cal_linux -i gui
Note: you must have exactly 5 spaces in the substitution part of the sed command, because you're replacing 5 characters (2.2.5), and the size of the shell script must not change.
If you do that, the installer should run (one warning from awk still) and you should be able to install the product.
Tim -
Oracle Database XE Client(winXP) vs Oracle Database XE (linux)
hi everybody there, thanks for having some time for reading me.
i have a linux with Oracle Database XE, under linux with database user 'hr' i can make queries and create applications, that is ok.
also, i've installed Oracle Database XE Client on windows xp machine, and i'am usin this option: Run SQL Command Line, this prompts me to enter user and password, and i am entering this:
connect hr/[email protected]:1521
after a few seconds, i get this error: ORA-12560: TNS:Protocol Adapter Error.
192.168.0.102 is the IP address from my linux database, 1521 is the default port (i am using this port).
is this client looking for file tnsnames.ora? what else do i need on client (or server), to connect to my linux database?
my final aim is to connect from Developer 9i (winxp) to my linux database (in fact, i have the same error of above, trying this), only that i am trying first just to connect from Client XE to my linux, and when i get success with this, i will continue trying with Developer 9i.
if someone can guide me with this, it would be great. i am becoming crazy.
thanks.hi, thanks friend.
look, as i also installed Developer 9i, i have a directory where i put a tnsnames.ora file, this directory is: d:/OraDev9i/network/admin
i don't know if Client XE, looks for this directory?, if i would not have installed Dev 9i, where can i put this tnsnames.ora file for Client XE to read it?
well, let's asume Client XE looks for directory above, this is my tnsnames entry, pls check it:
XE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
i don't know if there is something wrong with this, please help me.
i did what you told me:
connect hr/francis2010@XE
and i got this:
ORA-12154 TNS: Could not resolve service name
also, i tried changing 'localhost.localdomain' to my linux IP address: 192.168.0.102, and i get the same error message. how do i know where Client XE is reading my tnsnames?
about the listener, i checked with this: sudo /.../init.d/... status, and it seems it is ok, remember i can work well in linux wiht hr, the port is ok, and i also checked with lsnrctl status, and i got LISTEN, so it seems is ok.
sorry, and thank you for your support, maybe this is easy but as i know the basics, i am lost. -
? Moving Solaris Oracle database to Linux Redhat Oracle
Thanks in advance.
Is it possible to take a cold database backup (datafiles, backup of control file, Sql*net, Initsid.ora) from Oracle on Solaris and move it to a Redhat Linux Oracle with the same database version 9.2.0.8 and bring up the database on Linux as a cloned database?
I'm thinking that this will be simple to migrate to give fokes a place to continue to do there work while I build a new database on RedHat. Is this a feasible?
ThanksImpossible to move between between cross platform even if it is between unix versions
But it possible in 10g using Cross platform tablespace ....In 9i you cannot ...Have to use Export/Import....
No alternative
or
Upgrade the 9i to 10g in solaris and then you can use crossplatform tablespace
but that requires lot of testing and should be carried whether you need and you need to know the impact of the applications
My suggestion would Export/import -
Personal Oracle Database for Linux
May I obtain a free Oracle Database for personal non commercial use? I have tied Personal Edition for MS Windows but I wish to migrate to Linux. I was not able to find appropriate download.
Thanks.The enterprise edition download CD will give you the option of installing the personal edition as one of the install options.
-
Just started supporting Oracle Databases for SAP Systems
Hello Guys/Girls,
I am working as oracle dba for the past 7 years, but this is the first time, I got an opportunity to adminster databases supporting SAP systems. I am doing search on SAP Network, and gathered information on BRTOOLS, SAPGUI etc., but could not find the details what I am looking for like, database objects growth rate, sap-oracle database performance specific details, as a oracle dba what are the DOs&DONTs etc., After made a lot of search on google, I found a book from O'Reilly, but that book covers older SAP, and Oracle versions. Our Client uses oracle 9i, and 10g primarily.
I am confident as a Oracle DBA supporting non-sap systems, but not SAPsystems. Is any one of you pls., suggest me or provide me some guide lines in terms of Database Management.
Appreciate your time!Abhi
Greate to meet another DBA in forum.The big problem we will face is SQL Tune.
Nothing much Diffnt supporting SAP.SAP PRovided some ready made tools to monitor and to solve.Reg tuning still we can follow same methoda but with approval from SAP or by ref SAP notes.Which u can find at service market place.
You can find some PDfs in sap market place and sdn.Which are ex'ly for DBas.
Reg Growth rate you can have a look on sap transactions and there are some notes also.I dont think there is specific Book or Doc which will say Dos and donts.
Performance we used to follow same methoda as a Dbas with ref of sap notes and support for any side effects.
let me know if are in need of any specific info
Regards
Vinod -
Issue While starting the Oracle Database
Dear All,
I am getting the below error while starting the database:
We are using VMware and the database version is 11.2.0.3
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Thu Oct 24 10:21:10 2013
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount
ORA-10997: another startup/shutdown operation of this instance inprogress
ORA-09969: unable to close or remove lock file
Linux-x86_64 Error: 30: Read-only file system
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 30: Read-only file system
Additional information: 9925
SQL>
Please let me know how to go forward ?..
Is this issue related to Oracle or OS VMware ?..
Regards,
MaheshMode of file system on your OS has changed to read-only.
ORA-09969: unable to close or remove lock file
Linux-x86_64 Error: 30: Read-only file system
The above error can be because of your partition where lock file for instance is kept is changed into read only mode.
You can do the following.
1. Check if on the instance shutdown operation is pending .
2. Check which mount points are changed to read only mode.
3. As you system admin to Remount the same in read write mode or you can try this cmd as root user (mount -o remount,rw <device driver> <partition name>. Eg:- mount -o remount,rw /dev/sdb5 /oracle).
4 .Let the database to get shutdown
5. after this startup again -
A strange error when starting up Oracle database
When I was starting up an Oracle DB instance on HP-UX B.11.23 U ia64 host, a strange error message was encountered as follows:
======================================================
SQL*Plus: Release 9.2.0.8.0 - Production on Sat Sep 1 21:50:05 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 320290568 bytes
Fixed Size 724744 bytes
Variable Size 285212672 bytes
Database Buffers 33554432 bytes
Redo Buffers 798720 bytes
Database mounted.
ORA-01122: database file 11 failed verification check
ORA-01110: data file 11: '/u01/CADDB/data/cwmlite01.dbf'
ORA-01251: Unknown File Header Version read for file number 11
SQL> Disconnected from Oracle9i Release 9.2.0.8.0 - 64bit Production
JServer Release 9.2.0.8.0 - Production
Database "GPRS" warm started.
======================================================
To my surprise, the file /u01/CADDB/data/cwmlite01.dbf is a data file of the tablespace CWMLITE from another Oracle DB instance named "CADDB". Who can tell me why that? What is the purpose of the tablespace CWMLITE in a DB?Hm, what does this have to do with "Community Feedback and Suggestions"?
Please move your post to a more apropriate forum such as General Database Discussions -
Oc4j starting with Oracle Database & oc4j App Server on same machine
Hi ALL, can anybody help me(pls read this)
This is Sagar, i have created a GIS Application(java) using Oracle 10g.
Senario I:
oc4j server and oracle 10g Database Server on different machines:
When i start oc4j server with NO. OF Mappers = 64 or 30 in DNS using
1. oc4j -start (normally)
from the path c:/oc4j/bin by setting ORACLE_HOME path normally
application is working fine but when users are increased say 4 to 5 oc4j server gives error:
java.lang.OutOfMemoryError: Java Heap Space
I searched for this error i found a solution for starting oc4j as follows:
2.Java -Xmx1024m -Xms1024m -jar oc4j.jar
from the path c:/oc4j/j2ee/home --- oc4j.jar
Then map & application works fine and fast since heap space is increased to 1GB (speed is noticable)
but if...(in other senario)
Senario II:
oc4j server and oracle 10g Database Server on same machine:
if step 2: is used form above senario, oc4j Server does not gets started only it gets initialized...(server does not gets started)
but Step 1: is used application works fine but again heap space error as mentioned above is seen.
Again if changes are made in oc4j.cmd file in c:/oc4j/bin ....by giving the heap space command oc4j works fine but the application(performance) is very very slow but heap space error is not seen.
Please can any body suggest the solution.. application should work fast and also the heap space should be increased but taking the senario - oc4j App Server & Oracle 10g Database Server on Same machine..Hello,
How much RAM do you have on the machine? What is the size of the SGA for the database you are using?
if step 2: is used form above senario, oc4j Server does not gets started only it gets >initialized...(server does not gets started)What do you mean by this? Provide the output from the server when you start your server. -
Hi ,
I installed Oracle 9i . I created a default database during installation process. I connected to the database , it connects fine . Its up and running . I created one more database in SQLPLUS. run all the catlog scripts. I had put an entry in the tnsnames, and listner files about the new database CONNECT STRING. And I was using the connect string . It was working fine . Connected to the database as SYS , and SYSTEM . It connected. I restarted the computer. Now after restart I am trying to connect to the second database server as SYSTEM/MANAGER@ORADB ( which was connecting fine before restart0 and it gives me error .
ORA-12500: TNS:listener failed to start a dedicated server process.
Any idea ? Please help. its urgent. Also I dont see the DB name in the Enterprise manager. And how can i register it as a windows service, So when I start the computer , the database starts by itself ?
regards
Ferozdid you start the database listener ?
lsnrctl start -
How to automate the Oracle database start and shutdown process
How we can automate and oracle database start and stop procees with Linux start/shutdown process.
I want to automatically start the oracle database at the time linux server and shutdown the database on shutdown linux server.Hi,
I can share my scripts:
1) /home/oracle/start_oracle.sh
#Script should be ran as Oracle user
cd /tmp
export ORACLE_SID=orcl
export ORACLE_HOME=/oracle/ora9i
lsnrctl start
sqlplus -S /nolog <<ENDSQL
connect / as sysdba
startup
exit
ENDSQL
emctl start dbconsole
isqlplusctl start
NOTE: emctl and isqlplus are optional
2) /home/oracle/stop_oracle.sh
#Script should be ran as Oracle user
cd /tmp
export ORACLE_SID=orcl
export ORACLE_HOME=/oracle/ora9i
isqlplusctl stop
emctl stop dbconsole
sqlplus -S /nolog <<ENDSQL
connect / as sysdba
shutdown immediate
exit
ENDSQL
lsnrctl stop
NOTE: emctl and isqlplus are optional
Then what you need:
1) K91oracle_stop (put it in the desired run level)
#!/bin/bash
# description: Stop Oracle before reboots
su - oracle -c "/home/oracle/stop_oracle.sh" >> /home/oracle/stoporacle.log
2) S91oracle_start (put it in the desired run level)
#!/bin/bash
# description: Start Oracle after reboots
su - oracle -c "/home/oracle/start_oracle.sh" >> /home/oracle/startoracle.log
Bye. -
How to conncet mysql database and oracle database 11g2 on linux 5.4
Hi,
Can anyone help me to connect mysql server database to Oracle
database on Linux OS?
I have done all things, but I am getting a problem in installing dg4odbc
driver on Oracle database. In a simple word, I don't know how to create
listener between mysql database and Oracle database.
If anyone knows that please help me in configuring dg4odbc for Oracle. OS
-Linux 5.4 and refer any doc or link.
oracle 11g2 11.2.0.1
i follow the metalink id - 466228.1 ( but cant successed).
Thanks and regards,
pritesh ranjanhi pl z clear me it is required to install manully the dg4odbc driver for oracle to connect MySQL server database. because in my $ORACLE_HOME/hs/admin/initdg4odbc.ora is present automatically.
details of the initdg4odbc.ora
# This is a sample agent init file that contains the HS parameters that are
# needed for the Database Gateway for ODBC
# HS init parameters
HS_FDS_CONNECT_INFO = mysql_odbc
HS_FDS_TRACE_LEVEL = off
HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5w.so
# ODBC specific environment variables
set ODBCINI=/etc/odbc.ini
set LD_LIBRARY_PATH=/usr/lib
# Environment variables required for the non-Oracle system
#set HOME=/home/oracle
~
~
~
"initdg4odbc.ora" 20L, 437C
details of the listener.ora file
DG4ODBC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA=(SID=dg4odbc))
(HS=OK)
SID_LIST_ORCL =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = ORCL)
ADR_BASE_DG4ODBC = /u01/app/oracle
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = pritesh11gprim.oracle.com)(PORT = 1521))
ADR_BASE_ORCL = /u01/app/oracle
"listener.ora" [readonly] 37L, 779C 35,0-1 85%
details of tnsname.ora file
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
DG4ODBC =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=DG4ODBC))
(HS=OK)
MYSQL =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=MYSQL))
(HS=OK)
when i m going to start the listener it could not be started..
details of the mysql server database
[root@pritesh11gprim ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql> show databases;
| Database |
| information_schema |
| demo |
| mysql |
| performance_schema |
| pritesh |
| test |
6 rows in set (0.01 sec)
if any where i m wrong then plz suggest me......
thanks & regards
pritesh ranjan
Maybe you are looking for
-
E61: Compatibility issue with Excel sheets
Hello, I am having difficulties transferring an Excel file from my E61 to my laptop running Office 2007: I had originally written the file in Office 2003 and I have now added two more sheets to the file and renamed the original sheet on my E61. When
-
Adobe Flash Player Plugin crashes in ALL browsers while accessing webcam
Hi, I am struggling to get my adobe flash player plug-in working while accessing webcam. It simply crashes in all browsers. I googled this issue and realized many users are facing this issue. However I did not get any solution to fix this. I tried un
-
I'm new to BI Publisher. The client send me the xml file and he want to generate a separate report base on certain tag or grouping inside the xml file. I'm using BI Publisher Enterprise 5.6.2 Did anyone burst xml file into multiple xml file? All sugg
-
I have a little pocket AM/FM radio..... I listen to various stations....sports, news, etc. ...... However, it is old and I was thinking of getting a new one. Then, I thought about getting an ipod touch instead and downloading a "Radio App" that wou
-
Is there *any* way to connect 5500 to a Mac?
Is there any way I can transfer anything to and from a 5500 with a Mac running osX 10.4.9? My only luck so far has been using filebrowser, but - a big huge BUT - the music I transfer to the phone isn't showing up in the musicplayer. My unqualified gu