<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Oracle%2FDatabase%2FNotes</id>
	<title>Oracle/Database/Notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Oracle%2FDatabase%2FNotes"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Oracle/Database/Notes&amp;action=history"/>
	<updated>2026-05-08T15:24:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Oracle/Database/Notes&amp;diff=1982&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;=== Java ===  [http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html Oracle - Oracle JDBC Frequently Asked Questions]  [http://www.oracle.com/technology/so...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Oracle/Database/Notes&amp;diff=1982&amp;oldid=prev"/>
		<updated>2015-04-15T15:44:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Java ===  [http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html Oracle - Oracle JDBC Frequently Asked Questions]  [http://www.oracle.com/technology/so...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Java ===&lt;br /&gt;
&lt;br /&gt;
[http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html Oracle - Oracle JDBC Frequently Asked Questions]&lt;br /&gt;
&lt;br /&gt;
[http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html Oracle JDBC Drivers release 11.1.0.6.0 Downloads]&lt;br /&gt;
&lt;br /&gt;
=== TNS Listener ===&lt;br /&gt;
&lt;br /&gt;
TNS Listener - show services&lt;br /&gt;
 /opt/oracle/product/11.1/db_1/bin/lsnrctl services&lt;br /&gt;
&lt;br /&gt;
If you see this, then you are good to go:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-NOV-2009 03:37:50&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1991, 2007, Oracle.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))&lt;br /&gt;
Services Summary...&lt;br /&gt;
Service &amp;quot;orcl&amp;quot; has 1 instance(s).&lt;br /&gt;
  Instance &amp;quot;orcl&amp;quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;
    Handler(s):&lt;br /&gt;
      &amp;quot;DEDICATED&amp;quot; established:2 refused:0 state:ready&lt;br /&gt;
         LOCAL SERVER&lt;br /&gt;
Service &amp;quot;orclXDB&amp;quot; has 1 instance(s).&lt;br /&gt;
  Instance &amp;quot;orcl&amp;quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;
    Handler(s):&lt;br /&gt;
      &amp;quot;D000&amp;quot; established:0 refused:0 current:0 max:1022 state:ready&lt;br /&gt;
         DISPATCHER &amp;lt;machine: rhel53x86, pid: 9159&amp;gt;&lt;br /&gt;
         (ADDRESS=(PROTOCOL=tcp)(HOST=rhel53x86)(PORT=59832))&lt;br /&gt;
Service &amp;quot;orcl_XPT&amp;quot; has 1 instance(s).&lt;br /&gt;
  Instance &amp;quot;orcl&amp;quot;, status READY, has 1 handler(s) for this service...&lt;br /&gt;
    Handler(s):&lt;br /&gt;
      &amp;quot;DEDICATED&amp;quot; established:2 refused:0 state:ready&lt;br /&gt;
         LOCAL SERVER&lt;br /&gt;
The command completed successfully&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you see this, then your database is not started:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 04-NOV-2009 03:33:47&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 1991, 2007, Oracle.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))&lt;br /&gt;
The listener supports no services&lt;br /&gt;
The command completed successfully&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SQL*Plus:&lt;br /&gt;
 /opt/oracle/product/11.1/db_1/bin/sqlplus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To start the database:&lt;br /&gt;
 sqlplus / as sysdba&lt;br /&gt;
 &amp;gt; conn sys/[PASSWORD] as sysdba&lt;br /&gt;
 &amp;gt; startup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remove [http://en.wikipedia.org/wiki/Interprocess_communication IPC] (Inter Process Communication - ie Named Pipes) from:&lt;br /&gt;
 /opt/oracle/product/11.1/db_1/network/admin/listener.ora&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To stop and start the TNS Listener:&lt;br /&gt;
 /opt/oracle/product/11.1/db_1/bin/lsnrctl stop&lt;br /&gt;
 /opt/oracle/product/11.1/db_1/bin/lsnrctl start&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
&lt;br /&gt;
=== automount messages ===&lt;br /&gt;
&lt;br /&gt;
If you are seeing this in the /var/log/messages:&lt;br /&gt;
 Jan 30 03:32:10 ws-194-120 automount[3108]: create_udp_client: hostname lookup failed: Operation not permitted&lt;br /&gt;
 Jan 30 03:32:10 ws-194-120 automount[3108]: create_tcp_client: hostname lookup failed: Operation not permitted&lt;br /&gt;
 Jan 30 03:32:10 ws-194-120 automount[3108]: lookup_mount: exports lookup failed for stawj12&lt;br /&gt;
&lt;br /&gt;
Turn off the autofs service: [http://forums.oracle.com/forums/thread.jspa?threadID=579670]&lt;br /&gt;
 service autofs stop&lt;br /&gt;
&lt;br /&gt;
=== queue size ===&lt;br /&gt;
&lt;br /&gt;
so it works with the settings at # of processes 20,000 and the QUEUESIZE = 2,000&lt;br /&gt;
&lt;br /&gt;
QUEUESIZE is changed in 2 files:&lt;br /&gt;
 $ORACLE_HOME/network/admin/listener.ora&lt;br /&gt;
 $ORACLE_HOME/network/admin/tnsnames.ora&lt;br /&gt;
&lt;br /&gt;
=== Broken Oracle ===&lt;br /&gt;
&lt;br /&gt;
See [[Broken Oracle]]&lt;br /&gt;
&lt;br /&gt;
=== Auto mount and open broken ===&lt;br /&gt;
&lt;br /&gt;
See [[Oracle - Why won&amp;#039;t the mount and open happen automatically]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Notes ==&lt;br /&gt;
&lt;br /&gt;
[ORACLE-BASE - Oracle 11g Release 1 RAC On Linux Using NFS http://www.oracle-base.com/articles]:/11g/OracleDB11gR1RACInstallationOnLinuxUsingNFS.php&lt;br /&gt;
 $ sqlplus / as sysdba&lt;br /&gt;
 SQL&amp;gt; CONN sys/password@rac1 AS SYSDBA&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.orafaq.com/forum/t/62788/0/ OraFAQ Forum: Networking and Gateways =&amp;gt; How to configure listener.ora]:&lt;br /&gt;
 tnsping newDB&lt;br /&gt;
&lt;br /&gt;
Edit /etc/oratab and add &amp;#039;Y&amp;#039; to get it to auto start with dbstart&lt;br /&gt;
&lt;br /&gt;
/etc/oratab:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# This file is used by ORACLE utilities.  It is created by root.sh&lt;br /&gt;
# and updated by the Database Configuration Assistant when creating&lt;br /&gt;
# a database.&lt;br /&gt;
&lt;br /&gt;
# A colon, &amp;#039;:&amp;#039;, is used as the field terminator.  A new line terminates&lt;br /&gt;
# the entry.  Lines beginning with a pound sign, &amp;#039;#&amp;#039;, are comments.&lt;br /&gt;
#&lt;br /&gt;
# Entries are of the form:&lt;br /&gt;
#   $ORACLE_SID:$ORACLE_HOME:&amp;lt;N|Y&amp;gt;:&lt;br /&gt;
#&lt;br /&gt;
# The first and second fields are the system identifier and home&lt;br /&gt;
# directory of the database respectively.  The third filed indicates&lt;br /&gt;
# to the dbstart utility that the database should , &amp;quot;Y&amp;quot;, or should not,&lt;br /&gt;
# &amp;quot;N&amp;quot;, be brought up at system boot time.&lt;br /&gt;
#&lt;br /&gt;
# Multiple entries with the same $ORACLE_SID are not allowed.&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
orcl:/opt/oracle/product/11.1/db_1:Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Listener list:&lt;br /&gt;
 /opt/oracle/product/11.1/db_1/network/admin/listener.ora&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Killing sessions:&lt;br /&gt;
*[http://www.oracle-base.com/articles/misc/KillingOracleSessions.php ORACLE-BASE - Killing Oracle Sessions]&lt;br /&gt;
*[http://www.idevelopment.info/data/Oracle/DBA_tips/Microsoft_Windows/WINDOWS_1.shtml ORACLE - DBA Tips Corner]&lt;br /&gt;
 killall -9 oracle&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://forums.oracle.com/forums/thread.jspa?threadID=239281&amp;amp;tstart=-1 OTN Discussion Forums : ORA-27101: shared memory realm does not ...]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When Ever you try to connect DB via Java Program or SQLPlus following error will ap is found:&lt;br /&gt;
&lt;br /&gt;
ERROR:&lt;br /&gt;
ORA-01034: ORACLE not available&lt;br /&gt;
ORA-27101: shared memory realm does not exist&lt;br /&gt;
SVR4 Error: 2: No such file or directory&lt;br /&gt;
&lt;br /&gt;
Solution :&lt;br /&gt;
You need to Manually startup the database&lt;br /&gt;
&lt;br /&gt;
check ORACLE_SID has value&lt;br /&gt;
&lt;br /&gt;
sqlplus &amp;quot;sys/password as sysdba&amp;quot;&lt;br /&gt;
startup;&lt;br /&gt;
Connected to an idle instance.&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; startORACLE instance started.&lt;br /&gt;
SQL&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
$ export ORACLE_SID=ANOTHER_SID&lt;br /&gt;
$ sqlplus &amp;quot;sys/password as sysdba&amp;quot;&lt;br /&gt;
&lt;br /&gt;
SQL&amp;gt; startup;&lt;br /&gt;
SQL&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
$ export ORACLE_SID=jcrdb&lt;br /&gt;
$ sqlplus &amp;quot;sys/password as sysdba&amp;quot;&lt;br /&gt;
SQL&amp;gt; startup;&lt;br /&gt;
SQL&amp;gt; exit&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
--Nazeer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://download.oracle.com/docs/cd/B28359_01/network.111/b28316/listenercfg.htm Oracle - Configuring and Administering Oracle Net Listener]&lt;br /&gt;
:&amp;quot;Oracle Net Listener is a separate process that runs on the database server computer. It receives incoming client connection requests and manages the traffic of these requests to the database server. This chapter describes how to configure the listener to accept client connections.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:This chapter includes the following topics:&lt;br /&gt;
*Oracle Net Listener Configuration Overview&lt;br /&gt;
*Oracle Net Listener Configuration During Installation&lt;br /&gt;
*Customizing Oracle Net Listener Configuration&lt;br /&gt;
*Configuring Service Registration&lt;br /&gt;
*Listener Administration&lt;br /&gt;
&lt;br /&gt;
*[http://download.oracle.com/docs/cd/B12037_01/network.101/b10775/listenercfg.htm Oracle - 10 Configuring and Administering the Listener]&lt;br /&gt;
*[http://download-uk.oracle.com/docs/cd/A91202_01/901_doc/network.901/a90154/listener.htm Oracle - Configuring and Administering the Listener]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.psoug.org/reference/listener.html Oracle Listener Service Connect]:&lt;br /&gt;
&lt;br /&gt;
set an encrypted listener password&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c:\oracle\product\ora102\bin&amp;gt; lsnrctl start&lt;br /&gt;
LSNRCTL&amp;gt; change_password&lt;br /&gt;
Old password:&lt;br /&gt;
New password:&lt;br /&gt;
Reenter new password:&lt;br /&gt;
LSNRCTL&amp;gt; save_config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
kill on *NIX&lt;br /&gt;
 ps -ef|grep tnslsnr|awk &amp;#039;{ print $2; }&amp;#039;|xargs kill -9&lt;br /&gt;
&lt;br /&gt;
view the current listener services&lt;br /&gt;
 c:\oracle\product\ora10\bin&amp;gt; lsnrctl services&lt;br /&gt;
&lt;br /&gt;
start the listener&lt;br /&gt;
 c:\oracle\product\ora10\bin&amp;gt; lsnrctl start&lt;br /&gt;
&lt;br /&gt;
status 	view the current listener status&lt;br /&gt;
 c:\oracle\product\ora10\bin&amp;gt; lsnrctl status&lt;br /&gt;
&lt;br /&gt;
stop 	stop the listener&lt;br /&gt;
 c:\oracle\product\ora10\bin&amp;gt; lsnrctl stop&lt;br /&gt;
&lt;br /&gt;
set&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;ORA-12519, TNS:no appropriate service handler found&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://it.newinstance.it/2007/06/01/ora-12519-tnsno-appropriate-service-handler-found/ ORA-12519, TNS:no appropriate service handler found - NewInstance]:&lt;br /&gt;
:&amp;quot;Googling around [http://forums.oracle.com/forums/thread.jspa?messageID=1255542 I found] that this is a bug on how OracleXE monitors processes, and issuing the following command at SQL command line will fix it (after restarting the listener): “ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE;”.&lt;br /&gt;
Worked for me. This saved me to install Oracle Enterprise on my laptop.&amp;quot;&lt;br /&gt;
 ALTER SYSTEM SET PROCESSES=150 SCOPE=SPFILE&lt;br /&gt;
 #and then restart the db.&lt;br /&gt;
&lt;br /&gt;
Show current number of processes: [http://groups.google.com/group/django-developers/browse_thread/thread/e2fde44dac7391c0]&lt;br /&gt;
 show parameters processes; &lt;br /&gt;
 alter system set processes = 100 scope=spfile; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://forums.oracle.com/forums/thread.jspa?threadID=613803 OTN Discussion Forums : ALTER SYSTEM SET processes=1000 ...]:&lt;br /&gt;
:I have exactly the same problem. I&amp;#039;ve changed PROCESS parameter to 3000 and Oracle does not start anymore. How can I change the parameter back to the previous value if Oracle is not started?&lt;br /&gt;
&lt;br /&gt;
:Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
open the initSID.ora file from&lt;br /&gt;
$ORACLE_HOME/database (on windows)&lt;br /&gt;
$ORACLE_HOME/dbs (on unix)&lt;br /&gt;
and change the parameter&lt;br /&gt;
&lt;br /&gt;
processes=100 (your required value)&lt;br /&gt;
&lt;br /&gt;
then try to start the instance.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
If there is no such parameter in initSID.ora, then you are using spfile. Do the following:&lt;br /&gt;
set ORACLE_SID=YOUR_SID&lt;br /&gt;
sqlplus &amp;quot;/as sysdba&amp;quot;&lt;br /&gt;
create pfile from spfile; -- without starting the instance&lt;br /&gt;
edit the pfile to change the processes parameter, delete spfile&lt;br /&gt;
startup nomount&lt;br /&gt;
create spfile from pfile&lt;br /&gt;
startup force&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
check if your database is running or not on unix enter this command&lt;br /&gt;
ps -ef|grep smon&lt;br /&gt;
&lt;br /&gt;
if it show you smon_YOURDBSID then you db is running.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://snippets.dzone.com/posts/show/3266 DZone Snippets - Change sessions, transaction and processes parameters in Oracle 10g]&lt;br /&gt;
 alter system set PROCESSES=100 scope=SPFILE;&lt;br /&gt;
 alter system set TRANSACTIONS=126 scope=SPFILE;&lt;br /&gt;
 alter system set SESSIONS=115 scope=SPFILE;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.oracle.com/technology/obe/11gr1_db/manage/amm/files/amm_setup.sql amm_setup.sql]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drop tablespace tbssga including contents and datafiles;&lt;br /&gt;
&lt;br /&gt;
create tablespace tbssga datafile &amp;#039;tbssga12.dbf&amp;#039; size 20m;&lt;br /&gt;
&lt;br /&gt;
drop tablespace mytemp including contents and datafiles;&lt;br /&gt;
&lt;br /&gt;
create temporary tablespace mytemp tempfile &amp;#039;temp12.f&amp;#039; size 40m reuse;&lt;br /&gt;
&lt;br /&gt;
drop user amm cascade;&lt;br /&gt;
&lt;br /&gt;
create user amm identified by amm default tablespace tbssga temporary tablespace mytemp;&lt;br /&gt;
&lt;br /&gt;
grant connect,resource,dba to amm;&lt;br /&gt;
&lt;br /&gt;
select substr(COMPONENT, 0, 10) COMP, CURRENT_SIZE CS, USER_SPECIFIED_SIZE US from v$memory_dynamic_components where CURRENT_SIZE!=0;&lt;br /&gt;
&lt;br /&gt;
connect amm/amm&lt;br /&gt;
&lt;br /&gt;
drop table tabsga purge;&lt;br /&gt;
&lt;br /&gt;
create table tabsga(a number, b number) tablespace tbssga;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
  for i in 1..100000 loop&lt;br /&gt;
    insert into tabsga values (i, i);&lt;br /&gt;
  end loop;&lt;br /&gt;
end;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
commit;&lt;br /&gt;
&lt;br /&gt;
alter table tabsga parallel 64;&lt;br /&gt;
&lt;br /&gt;
create or replace procedure testpga( psize number ) as&lt;br /&gt;
begin&lt;br /&gt;
declare&lt;br /&gt;
  TYPE nAllotment_tabtyp    IS TABLE OF char(2048) INDEX BY BINARY_INTEGER;&lt;br /&gt;
  myarray nAllotment_tabtyp;&lt;br /&gt;
begin&lt;br /&gt;
  for i in 1..psize loop&lt;br /&gt;
    myarray(i) := to_char(i);&lt;br /&gt;
  end loop;&lt;br /&gt;
end;&lt;br /&gt;
end;&lt;br /&gt;
/&lt;br /&gt;
&lt;br /&gt;
show errors&lt;br /&gt;
&lt;br /&gt;
select substr(COMPONENT, 0, 10) COMP, CURRENT_SIZE CS, USER_SPECIFIED_SIZE US from v$memory_dynamic_components where CURRENT_SIZE!=0;&lt;br /&gt;
&lt;br /&gt;
connect / as sysdba&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;_PX_use_large_pool&amp;quot; = TRUE SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;_memory_broker_stat_interval&amp;quot; = 5 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;_memory_management_tracing&amp;quot; = 31 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;parallel_execution_message_size&amp;quot; = 36864 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;parallel_max_servers&amp;quot; = 200 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;parallel_adaptive_multi_user&amp;quot; = FALSE SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;processes&amp;quot; = 200 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;pga_aggregate_target&amp;quot; = 0 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;sga_target&amp;quot; = 0 SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
alter system set &amp;quot;memory_target&amp;quot; = 280M SCOPE=SPFILE;&lt;br /&gt;
&lt;br /&gt;
shutdown immediate;&lt;br /&gt;
&lt;br /&gt;
startup;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
QUEUESIZE&lt;br /&gt;
&lt;br /&gt;
[http://www.experts-exchange.com/Database/Oracle/Q_23384564.html How big should the Listener queue size be? : Oaracle, Oracle, 10g, Windows 2000]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://www.stanford.edu/dept/itss/docs/oracle/10g/network.101/b10775/listenercfg.htm#i483130&lt;br /&gt;
&lt;br /&gt;
Handling Large Volumes of Concurrent Connection Requests&lt;br /&gt;
If you expect the listener to handle large volumes of concurrent connection requests, then you can specify a listener queue size for its TCP/IP or IPC listening endpoints. To specify the listener queue size, specify the QUEUESIZE parameter at the end of the protocol address with its value set to the expected number of concurrent requests. For example:&lt;br /&gt;
&lt;br /&gt;
Example 10-2 listener.ora File with Queue Size&lt;br /&gt;
&lt;br /&gt;
LISTENER=&lt;br /&gt;
 (DESCRIPTION=&lt;br /&gt;
  (ADDRESS=(PROTOCOL=tcp)(HOST=sales-server)(PORT=1521)(QUEUESIZE=20)))&lt;br /&gt;
Note:&lt;br /&gt;
&lt;br /&gt;
The default number of concurrent connection requests is operating-system specific. The defaults for TCP/IP on the Solaris Operating System and Windows follow:&lt;br /&gt;
&lt;br /&gt;
Solaris Operating System: 5&lt;br /&gt;
Windows NT 4.0 Workstation: 5&lt;br /&gt;
Windows NT 4.0 Server: 50&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.experts-exchange.com/Database/Oracle/Q_20938559.html Oracle Configuration Parameters : oracle, queuesize]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Using MS MTS to access oracle:&lt;br /&gt;
&lt;br /&gt;
try to set these parameter to a larger value, considering you have 100+ users...&lt;br /&gt;
&lt;br /&gt;
You need to set these values in INIT&amp;lt;SID&amp;gt;.ORA FILE on the database server:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sessions = 600&lt;br /&gt;
distributed_transactions = 600&lt;br /&gt;
open_cursors =1000&lt;br /&gt;
processes =600&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You need to restart the database by shutdown immediate so that these changes will take effect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
you also need to set the QUEUESIZE in the LISTENER.ORA file on the database server&lt;br /&gt;
&lt;br /&gt;
QUEUESIZE = 150&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and then restart the listener process&lt;br /&gt;
by&lt;br /&gt;
&lt;br /&gt;
lsnrctl stop&lt;br /&gt;
lsnrctl start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://articles.techrepublic.com.com/5100-10878_11-5112504.html Database management: Optimizing your Oracle*Net configuration]&lt;br /&gt;
&lt;br /&gt;
The queuesize parameter in listener.ora&lt;br /&gt;
&lt;br /&gt;
The number of requests the listener can store while Oracle is working to establish a connection is determined by the undocumented queuesize parameter. This parameter is used only for very high-volume databases, where the listener spawns thousands of connections per hour. The number of expected simultaneous connections should be equal to the size of the queuesize parameter. Here&amp;#039;s an example of this parameter in the listener.ora file:&lt;br /&gt;
   LISTENER =&lt;br /&gt;
     (ADDRESS_LIST =&lt;br /&gt;
           (ADDRESS =&lt;br /&gt;
             (PROTOCOL = TCP)&lt;br /&gt;
             (HOST = marvin)&lt;br /&gt;
             (PORT = 1521)&lt;br /&gt;
             (QUEUESIZE = 32)&lt;br /&gt;
           )&lt;br /&gt;
     )&lt;br /&gt;
&lt;br /&gt;
A disadvantage of this parameter is that it preallocates resources for anticipated requests, therefore using more system memory and resources. You may want to consider using MTS and prespawned Oracle connections if you have high-volume connections into a dedicated listener. Also, note that some versions of UNIX do not allow queues greater than five, and there are some restrictions of the MTS queue size.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.praetoriate.com/phys_37.htm Oracle Hardware Design queuesize listener.ora Connection Pooling Network Performance]:&lt;br /&gt;
:Do not use automatic service registration. Set the init.ora parameter, local_listener, to use a different TCP port than the one defined in your listener.ora file.&lt;br /&gt;
&lt;br /&gt;
The queuesize parameter in listener.ora&lt;br /&gt;
&lt;br /&gt;
If it is expected that the listener will receive large numbers of requests for connection, a queue may be specified for the process. This enables the listener to handle larger numbers of simultaneous connection requests. The number of requests the listener can store while Oracle works to establish a connection is specified by the queuesize parameter. The value of this parameter should be equivalent to the number of expected simultaneous connections. Below is an example of the queuesize parameter in the listener.ora file: &lt;br /&gt;
&lt;br /&gt;
   LISTENER =&lt;br /&gt;
     (ADDRESS_LIST =&lt;br /&gt;
           (ADDRESS =&lt;br /&gt;
             (PROTOCOL = TCP)&lt;br /&gt;
             (HOST = marvin)&lt;br /&gt;
             (PORT = 1521)&lt;br /&gt;
             (QUEUESIZE = 32)&lt;br /&gt;
           )&lt;br /&gt;
     )&lt;br /&gt;
Use of queuesize can be disadvantageous since more resources and memory is used. The parameter pre-allocates resources for anticipated connection requests. For this reason, if high-volume connections into a dedicated listener are anticipated, it may be beneficial to implement the Multi-Threaded Server (MTS) and use pre-spawned Oracle connections.&lt;br /&gt;
&lt;br /&gt;
== Cluster Testing Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Connect with sqlplus ===&lt;br /&gt;
&lt;br /&gt;
Using SQL*PLUS to connect to a Oracle database:&lt;br /&gt;
&lt;br /&gt;
 CONN[ECT] &amp;lt;user&amp;gt;/&amp;lt;password&amp;gt;@&amp;lt;connect string&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Connect strinng is the Oracle instance name&lt;br /&gt;
&lt;br /&gt;
Sample:&lt;br /&gt;
 SQL&amp;gt; CONNECT SYSTEM/MANEDJ@EDJ&lt;br /&gt;
 Connected.&lt;br /&gt;
&lt;br /&gt;
[http://peoplecnc.com/whitepapers/article.php?story=20060501125326134 Peoplecnc.com - How connect to a Oracle Database using sql*plus]&lt;br /&gt;
&lt;br /&gt;
=== Show instance status ===&lt;br /&gt;
&lt;br /&gt;
Connected to an idle instance:&lt;br /&gt;
 SQL&amp;gt; select status from v$instance;&lt;br /&gt;
&lt;br /&gt;
You can also check oracle instance from UNIX command line by running:&lt;br /&gt;
 #ps -aef |grep pmon&lt;br /&gt;
&lt;br /&gt;
[http://sysdigg.blogspot.com/2007/12/how-to-check-if-oracle-instance-is-up.html News: How to check if Oracle instance is up or down ?]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check Oracle instance from UNIX/Linux command line&lt;br /&gt;
&lt;br /&gt;
 hpuxdev# ps -aef |grep ora_ |grep -v grep&lt;br /&gt;
&lt;br /&gt;
[http://sysdigg.blogspot.com/2007/12/how-to-check-if-oracle-instance-is-up.html News: How to check if Oracle instance is up or down ?]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== List tablespaces ===&lt;br /&gt;
&lt;br /&gt;
How to list the Oracle Tablespaces&lt;br /&gt;
 SQL&amp;gt; select * from v$tablespace;&lt;br /&gt;
&lt;br /&gt;
To list the free space for all Oracle Tablespaces within a Database&lt;br /&gt;
 SQL&amp;gt; select * from dba_free_space;&lt;br /&gt;
&lt;br /&gt;
To list the free space for  a specific Oracle TablespaceDATABASE&amp;gt;&amp;#039;&lt;br /&gt;
 SQL&amp;gt; select * from dba_free_space where TABLESPACE_NAME = &amp;#039;IATOR&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
To list the space ALREADY USED for  a specific Oracle Tablespace&lt;br /&gt;
 SQL&amp;gt; select * from DBA_SEGMENTS where TABLESPACE_NAME = &amp;#039;mytablespace&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
Oracle: How to list extents for segments?&lt;br /&gt;
 SQL&amp;gt; select tablespace_name, count(*), max(blocks), sum(blocks) from dba_free_space group by tablespace_name;&lt;br /&gt;
&lt;br /&gt;
[http://peoplecnc.com/whitepapers/article.php?story=20060511124309161 Peoplecnc.com - How to list the Oracle Tablespaces and free space]&lt;br /&gt;
&lt;br /&gt;
=== List instances ===&lt;br /&gt;
&lt;br /&gt;
 select instance_name,status from gv$instance;&lt;br /&gt;
&lt;br /&gt;
[http://forums.oracle.com/forums/thread.jspa?threadID=673585 OTN Discussion Forums : oracle instance status check ...]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Drop tablespace ===&lt;br /&gt;
&lt;br /&gt;
 Drop tablespace useless;&lt;br /&gt;
 Drop tablespace useless including contents;&lt;br /&gt;
 Drop tablespace useless including contents and datafiles;&lt;br /&gt;
&lt;br /&gt;
[http://www.dba-oracle.com/t_oracle_drop_tablespace.htm Oracle DROP TABLESPACE tips]&lt;br /&gt;
&lt;br /&gt;
[http://www.dba-oracle.com/concepts/t_administering_tablespaces.htm Oracle Concepts - Administering Tablespaces]&lt;br /&gt;
&lt;br /&gt;
=== Drop bad tablespace (forced) ===&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Accident may happens, even though it’s costly one. This is especially the case in Oracle database, which stores the database objects physically in data files on hard disk. Fast hand administrators may accidentally delete some of the datafiles, or the datafiles may get corrupted or unreadable on hard disk failure. You may get also some missing datafiles after database recovery process. In any case, missing a or a few datafiles will cause Oracle database to fail to startup, rendering the whole DB inaccessible.&lt;br /&gt;
&lt;br /&gt;
The solution to the missing datafiles is to drop the affected tablespace where has incomplete datafiles, and then recreate the tablespace and import the data into the tablespace from backup. However, the steps are not so straight forward.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
1. Run SQL*Plus.&lt;br /&gt;
&lt;br /&gt;
2. Connect to database as SYSDBA with this query:&lt;br /&gt;
&lt;br /&gt;
 CONNECT / AS SYSDBA&lt;br /&gt;
&lt;br /&gt;
3. Mount the database instead of starting it up:&lt;br /&gt;
&lt;br /&gt;
 STARTUP MOUNT;&lt;br /&gt;
&lt;br /&gt;
4. Issue the following command to bring the missing datafile offline so that Oracle won’t trying to connect and access the datafile anymore:&lt;br /&gt;
&lt;br /&gt;
 ALTER DATABASE DATAFILE ‘&amp;lt;datafile name with complete path&amp;gt;’ OFFLINE DROP;&lt;br /&gt;
&lt;br /&gt;
Repeat the command for every datafiles that unaccounted for.&lt;br /&gt;
&lt;br /&gt;
5. Now start the database proper:&lt;br /&gt;
&lt;br /&gt;
 ALTER DATABASE OPEN;&lt;br /&gt;
&lt;br /&gt;
6. As the tablespace has damaged, drop it to recreate from fresh backup.&lt;br /&gt;
&lt;br /&gt;
 DROP TABLESPACE &amp;lt;tablespace name&amp;gt; INCLUDING CONTENTS;&lt;br /&gt;
&lt;br /&gt;
7. Ensure the other datafiles for the tablespace has been deleted, if not, remove them manually from the operating system.&lt;br /&gt;
&lt;br /&gt;
Tip: How to check datafiles that belong to tablespace.&lt;br /&gt;
&lt;br /&gt;
8. Continue with the recovery process.&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.mydigitallife.info/2007/08/04/how-drop-tablespace-and-recover-oracle-database-when-accidentally-delete-datafile/ How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile » My Digital Life]&lt;br /&gt;
&lt;br /&gt;
=== ORA-00257: archiver error ===&lt;br /&gt;
&lt;br /&gt;
[http://ora-00257.ora-code.com/ ORA-00257: archiver error. Connect internal only, until fr...]&lt;br /&gt;
&lt;br /&gt;
ORA-00257: archiver error. Connect internal only, until freed.&lt;br /&gt;
&lt;br /&gt;
Cause: The archiver process received an error while trying to archive a redo log. If the problem is not resolved soon, the database will stop executing transactions. The most likely cause of this message is the destination device is out of space to store the redo log file.&lt;br /&gt;
&lt;br /&gt;
Action: Check archiver trace file for a detailed description of the problem. Also verify that the device specified in the initialization parameter ARCHIVE_LOG_DEST is set up properly for archiving.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Oracle STATSPACK installation steps ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The STATSPACK utility requires an isolated tablespace to contain all of the objects and data. For uniformity, it is suggested that the tablespace be called perfstat, the same name as the schema owner for the STATSPACK tables. Note that I have deliberately not used the AUTOEXTEND option. It is important for the Oracle DBA to closely watch the STATSPACK data to ensure that the stats$sql_summary table is not taking an inordinate amount of space. We will talk about adjusting the STATSPACK thresholds later in this chapter.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
we create a tablespace called perfstat with at least 180 megabytes of space in the datafile:&lt;br /&gt;
 SQL&amp;gt; create tablespace perfstat &lt;br /&gt;
    datafile &amp;#039;/u03/oradata/prodb1/perfstat.dbf&amp;#039;&lt;br /&gt;
    size 500m;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.dba-oracle.com/t_statspack_installation_steps.htm Oracle STATSPACK installation steps]&lt;br /&gt;
&lt;br /&gt;
== Oracle RAC ==&lt;br /&gt;
&lt;br /&gt;
See [[Oracle RAC]]&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
oracle&lt;br /&gt;
&lt;br /&gt;
[[Category:Oracle]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>