Oracle spool issues
I have a spooling problem. i would like to display header row only once. my select gives back 500 records, i need to display header row in pipe delimited file. the problem is that the spool file header is creating with only few columns. lets say table have 20 columns and spool file header is creating with only 10 column. I am getting values for all columns in spool files.
when I run select sql munually in toad I am seeing all column names are disply.
Do you have any idea how to solve to only show all column names in header at the beginning?
thanks in advance
i use the following sets
set pagesize 8000;
set heading on;
set verify off;
set trimspool on;
set feedback off;
set underline off;
set echo off;
set termout off;
I did in my earlier script.
set pagesize 99999999;
set heading on;
set verify off;
set linesize 32767;
set trimspool on;
set feedback off;
--set termout off;
set underline off;
set echo off;
set termout off;
col sys_date new_value curr_date;
select to_char(sysdate,'YYYYMMDDHH24MI')||'.txt' sys_date from dual;
spool C:\promo_rpt.txt;
select ezaID|| '|' || EMPLOYEEID|| '|' || WORLDID || '|' || WORLDNUMBER|| '|' || FIRSTNAME|| '|' || LASTNAME|| '|' || WORKPHONE|| '|' ||
EMAIL|| '|' || SUPERVISORVZID|| '|' || DELIGATEDSUPERVISORVZID|| '|' || EBSTATE|| '|' || EZIP|| '|' || CBA|| '|' || CCODE|| '|' || CNAME|| '|' || EXTIND|| '|' ||
INCREUNIT|| '|' || PAYGROUP|| '|' || TIMEZONE|| '|' || COSTCENTER|| '|' || ESTATUS|| '|' || EMBEGINDATE|| '|' || EENDDATE|| '|' ||
TPAYPERIOD|| '|' || TPAYPERIOD|| '|' || TENABLED from twotwo;
spool off;
exit;
my spool file out is
EZAID||'|'||EMPLOYEEID||'|'||WORLDID||'|'||WORLDNUMBER||'|'||FIRSTNAME||'|'||LASTNAME||'|'||WORKPHONE||'|'||EMAIL||'|'||SUPERVISORVZID||'|'||DELIGATEDSUPERVISORVZID||'|'||EBSTATE||'|'||EBZIP
333|dfdfd|rtrtr|||||||fsdfsdf||dfdfd|||fdfddfdfd|dfd||||||||||
The spool file is created with header from EZAID to EBZIP only. I am not able to see the column names from CBA to TENABLED in spool file.
Similar Messages
-
Hardware Configuration:
Regarding Oracle Performance Issue.
Configuration 1
================
SunV880 - Sunfire
32 GB RAM
14 numbers of 36GB hard disk
8 CPUs
CPU Speed 750MZ.
Software Configuration:
Oracle 8i
OS version - Solaris 8
Customized our own application - Namex
Configuration 2
================
Intel PIII - 750 MZ
2 GB RAM
2 CPUS
Software configuration
Oracle 8i
OS version linux 6.2
Customized our own application - Namex (multi threaded application)
We installed the oracle application in all hard disks. All tables
are splited in to separate hard disks.
OS installed in 1 hard disk.
namex application installed in 1 hard disk
Oracle installed in 1 hard disk.
All tables are splited in to other hard disks.
We are trying to insert some user databases in oracle table. We
achieved up to 150 records/second in Sun server. But in lower
configuration our application inserts up to 100 records/second.
(configuration 2)
We want improve our inserting database records/per rate
in Sun Server.
How to tune our oracle application parameter values in init.ora
file. Our application tries to insert up to 500 records per second.
But I can't able to achieve this value.
init.ora file
=============
db_name = "namex"
instance_name = namex64
service_names = namex64
control_files = ("/disk1/oracle64/OraHome1/oradata/Namex64/control01.ctl", "/disk1/oracle64/OraHome1/oradata/namex64/control02.ctl", "/disk1/oracle64/OraHome1/oradata/namex64/control03.ctl")
open_cursors = 300
max_enabled_roles = 145
#db_block_buffers = 20480
db_block_buffers = 604800
#shared_pool_size = 419430400
shared_pool_size = 8000000000
#log_buffer = 163840000
log_buffer = 2147467264
#large_pool_size = 614400
java_pool_size = 0
log_checkpoint_interval = 10000
log_checkpoint_timeout = 1800
processes = 1014
# audit_trail = false # if you want auditing
# timed_statistics = false # if you want timed statistics
timed_statistics = true # if you want timed statistics
# max_dump_file_size = 10000 # limit trace file size to 5M each
# Uncommenting the lines below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest_1 = "location=/disk1/oracle64/OraHome1/admin/namex64/arch"
# log_archive_format = arch_%t_%s.arc
#DBCA uses the default database value (30) for max_rollback_segments
#100 rollback segments (or more) may be required in the future
#Uncomment the following entry when additional rollback segments are created and made online
#max_rollback_segments = 500
# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6, RBS7, RBS8, RBS9, RBS10, RBS11, RBS12, RBS13, RBS14, RBS15, RBS16, RBS17, RBS18, RBS19, RBS20, RBS21, RBS22, RBS23, RBS24, RBS25, RBS26, RBS27, RBS28 )
# Global Naming -- enforce that a dblink has same name as the db it connects to
# global_names = false
# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity. This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = true
# define directories to store trace and alert files
background_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/bdump
core_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/cdump
#Uncomment this parameter to enable resource management for your database.
#The SYSTEM_PLAN is provided by default with the database.
#Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan
user_dump_dest = /disk1/oracle64/OraHome1/admin/Namex64/udump
db_block_size = 16384
remote_login_passwordfile = exclusive
os_authent_prefix = ""
compatible = "8.0.5"
#sort_area_size = 65536
sort_area_size = 1024000000
sort_area_retained_size = 65536
DB_WRITER_PROCESSES=4
How to improve my performance activities on Oracle server.
Please guide me regarding this issue.
If anyone wants more info, please let me know.
Best regards,
SenthilkumarAre you sure that it is not an application constraint ? i.e. the application can't handle so much data per second ? (application locks, threads )
Have you tried to write a simple test program, which inserts predefined data (which your application inserts) the same data, only changing keys ?
Then comparing the values from the 1st and the 2nd configuration ?
Did you check the way your application is communicating with oracle ? If it is TCP/ip (even on the local machine) then this is your main problem.
And one more thing, do you know if your application is able to run the load (inserts) of data on different threads (i.e. in parallel), because if is not, you won't be able to push the speed higher because your constraint is the speed of a single CPU. Consider running several process, which loads the data.
We had the same problem ot AIX machines with 4 cpus. Monitoring the machine, we found that only 25% (1 cpu) where in use. We had to run 4 processes to push the speed up. Check your system's overal load while running the 'load' (inserts).
log_checkpoint_interval = 10000
Check if this value is appropriate. Maybe you should set it to 0 (infinite). This will disable checkpoints on a 'number of undo record' basis. Checpoints will occure only on log switch.
How much redo files per redo groups do you have ? What is their size ? Are they on different disks ? How much redo data is generated by a single 'record' inserted ?
Hope i helped at least a little. -
Hi Experts,
We have 40 to 50 connectors including SQL server, Oracle,Pco,OLAP etc in SAP MII system.
SAP MII version 12.2 SP6.
We got the Java Heap space on the SAP MII server and due to lack of disk space the server process is shutdown.
#2.0#2015 04 14 09:30:16:473#0-400#Fatal#com.sap.engine.frame.ProcessEnvironment#
com.sap.ASJ.krn_frm.000041#BC-JAS-COR#kernel.sda#C0000A0E68F54AF20000000100000D58#307331950000768373##com.sap.engine.frame.ProcessEnvironment#Guest#0##7F961CADD61211E4A26400001251836F#7f961cadd61211e4a26400001251836f#7f961cadd61211e4a26400001251836f#0#Thread[Managed_Application_Thread_37,5,Managed_Application_Thread]#Plain##
Server process shutting down with exit code [666]; memory allocation error [OutOfMemoryError]#
#2.0#2015 04 14 09:30:16:473#0-400#Fatal#com.sap.engine.frame.ProcessEnvironment#
com.sap.ASJ.krn_frm.000041#BC-JAS-COR#kernel.sda#C0000A0E68F54AF20000000200000D58#307331950000768373##com.sap.engine.frame.ProcessEnvironment#Guest#0##7F961CADD61211E4A26400001251836F#7f961cadd61211e4a26400001251836f#7f961cadd61211e4a26400001251836f#0#Thread[Managed_Application_Thread_37,5,Managed_Application_Thread]#Plain##
Server process shutting down with exit code [666] memory allocation error [OutOfMemoryError]
[EXCEPTION]
java.lang.OutOfMemoryError: Java heap space (failed to allocate 56 bytes)
After clearing the dump and make available disk space all the connectors like SQL server, OLAP,PCo etc working fine. But Oracle connectors are unstable.I can say oracle connectors keep loosing connections. The following errors were seen in logs. After I restart the server , the oracle connector starts working fine.
Unable to create connection to database for GDW
[EXCEPTION]
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at com.sap.lhcommon.system.CustomClassLoader.findClass(CustomClassLoader.java:232)
at java.lang.ClassLoader.loadClass(ClassLoader.java:367)
at java.lang.ClassLoader.loadClass(ClassLoader.java:308)
at com.sap.xmii.Illuminator.tools.database.JDBCDriverManager.getClassInstance(JDBCDriverManager.java:104)
at com.sap.xmii.Illuminator.tools.database.ConnectionPool.<init>(ConnectionPool.java:62)
at com.sap.xmii.Illuminator.tools.database.ConnectionHolder.addDBConnectionPool(ConnectionHolder.java:121)
at com.sap.xmii.Illuminator.server.Server.createHolder(Server.java:277)
at com.sap.xmii.Illuminator.server.Server.start(Server.java:134)
at com.sap.xmii.Illuminator.server.ServerManager$ServerInitializer.run(ServerManager.java:451)
at com.sap.xmii.Illuminator.server.ServerManager.startServer(ServerManager.java:414)
at com.sap.xmii.Illuminator.server.ServerManager.reload(ServerManager.java:370)
at com.sap.xmii.ejb.ServiceHandlerBean.doServerFunction(ServiceHandlerBean.java:222)
at com.sap.xmii.ejb.ServiceHandlerBean.onMessage(ServiceHandlerBean.java:75)
at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MessageListenerType.invoke(Interceptors_MessageListenerType.java:111)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Lock.invoke(Interceptors_Lock.java:21)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
at com.sap.engine.services.ejb3.runtime.impl.MDBProxyInvocationHandler.invoke(MDBProxyInvocationHandler.java:78)
at $Proxy435.onMessage(Unknown Source)
at com.sap.jms.client.session.JMSSession.deliverMessage(JMSSession.java:1046)
at com.sap.jms.client.session.JMSSession.run(JMSSession.java:894)
at com.sap.jms.resourceadapter.RaServerSession.run(RaServerSession.java:139)
at com.sap.engine.services.connector.jca15.work.TaskImpl.run(TaskImpl.java:410)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Error occurred while creating a database connection
[EXCEPTION]
com.sap.xmii.Illuminator.system.CommunicationException: Error occurred while creating a database connection
at com.sap.xmii.Illuminator.connectors.IDBC.IDBC.doProcessRequest(IDBC.java:81)
at com.sap.xmii.Illuminator.connectors.AbstractConnector.processRequest(AbstractConnector.java:83)
at com.sap.xmii.Illuminator.server.QueryEngine.run(QueryEngine.java:49)
at com.sap.xmii.Illuminator.services.handlers.IlluminatorService.processRequest(IlluminatorService.java:82)
at com.sap.xmii.Illuminator.services.ServiceManager.run(ServiceManager.java:69)
at com.sap.xmii.servlet.Illuminator.service(Illuminator.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:186)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.xsrf.filter.XSRFProtectorFilter.doFilter(XSRFProtectorFilter.java:62)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
I am not sure of OJDBC jar file version .we have either OJDBC5 or OJDBC6 jar deployed in SAP MII.
The oracle database version that we are connecting in the data server is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit
My questions are
After the server process shutdown and recovered , While all other connectors working fine why oracle connectors have problems?
Is it due to oracle driver issue? or any other issue related to Netweaver.
Please help.for item #1...If you add the line "gal_enableldapsearch = FALSE" to the "[ENG]" section of the calendar server configuration file, it will only put calendar users in the GAL and not all Internet Directory users.
--Bill -
JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Code is as follow for reference
import oracle.jdbc.driver.*;
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
eNVIRONMENT VARIABLES set are as follows:
classpath
C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
JAVA_HOME
C:\Program Files\Java\jdk1.5.0_04
PATH
C:\Program Files\Java\jdk1.5.0_04\bin
ORACLE_HOME
D:\Oracle11\product\11.2.0\client_1\BINApr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595) -
Remove extra blank rows in ORACLE SPOOLING
I am trying to spool a table result to a .dat file.
The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
Eg:
Original data as in DB
A B C
1 1 ABC DEF GH
2 1 DEF GHI JK
SPOOL FILE O/P
A | B | C |
1 | 1 | ABC |
| |DEF |
| |GH |
2 | 1 | DEF |
| | GHI |
| | JK |
Thanks,
DheepanDheepan wrote:
I am trying to spool a table result to a .dat file.
The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
Eg:
Original data as in DB
A B C
1 1 ABC DEF GH
2 1 DEF GHI JK
SPOOL FILE O/P
A | B | C |
1 | 1 | ABC |
| |DEF |
| |GH |
2 | 1 | DEF |
| | GHI |
| | JK |
Thanks,
Dheepancan you post script?
BTW, have you included SET TRIMSPOOL ON ?
When you have moved your question, Close that thread ORACLE SPOOLING extra blank rows
Edited by: CKPT on Mar 24, 2012 10:07 PM -
HI
some bdy had deleted APPL_TOP/admin ( in Test instance)) .ie admin directory which contains all the files for executing adutilities, how do i recreate this directory please let me knw the ans for this immediately.
I am getting erros like this
Java_top enviornment variable is not set in the environment.
Run Appsora.env or Apps<s_contextname>.env in the environment
bye
JamesDuplicate post (please post only once):
Oracle applications issue
Oracle applications issue -
Oracle vulnerability issue and JavaScript.
I started a discussion in the Muse forum, and also want to ask the question here, regarding the disabling of JavaScript in browsers. That thread is: forums.adobe.com/thread/1140485. My basic question is this: is there a work around, like adding code to HTML editor, as a result of issues associated with disabling of JavaScript in browser. For example, widget and google maps in website are broke when disabling of JavaSript in browser. This is an issue resulting from the Oracle vulnerability issue a few weeks back, where the Department of Homeland Security is recommending the disabling of js in browsers to prevent the rootkit infection on machines. Want is the answer to this issue. I don't mind learning code, if needed, to put in HTML editor. I just need to know what i need to do or learn. Not everybody is going to disable Java or remove it from their machines, but many folks are and have--that is those aware of the issue. Or is the whole issue just a big bogeyman?
Yes, thank you kenneth_rapp. Note another response in Muse forum and my reply to basically this same question, which produced the same answer. You'll note, where my confusion began. See that discussion in muse forum http://forums.adobe.com/message/5017525#5017525http:// provided by member: topelovely. Again, thanks for the response. It caused me to further read and understand the differences.
-
How to resolve Oracle lock issue
Hi All,
What is Oracle lock issue in BW and how to resolve it.
Regards,
RaviHi Ravi,
The object lock issues that we sometimes encounter in SAP BW production support role.
Lets take the below example where the InfoObject(0material) load has failed and the load monitor (T-Code: RSMO) looks like this.
Go through the link below
http://proradian.com/blog/2008/07/sap-bw-production-support-object-lock-issues/
Regards,
Marasa. -
Please Help in ORACLE SPOOL File
Hello All,
I made oracle Spool file.Generally i m calling a FUNCTION which return a REFCURSOR.
----Package Spec------------------------
CREATE OR REPLACE PACKAGE Axspointrpt IS
TYPE return_cur IS REF CURSOR ;
-- # Updates to the SOI and associated CARMA user ids
FUNCTION F_UPDATION_USERID_RPT RETURN return_cur ;
END Axspointrpt;
----Package Body------------------------
CREATE OR REPLACE PACKAGE BODY Axspointrpt IS
FUNCTION F_UPDATION_USERID_RPT
RETURN return_cur IS
VCur return_cur;
BEGIN
OPEN VCur FOR
SELECT
ID_SCTY,ID_SYMBOL,NM_SHORT,S.DT_MNT_LST,S.ID_MNT_LST,LTRIM(RTRIM(CARMA_FINAL.F_Getusername(S.ID_MNT_LST))) USERNAME,DECODE(IN_DELETED,'Y','YES','N','NO') ACTION
FROM SOI_MASTER S,APP_USER A
WHERE S.ID_MNT_LST=A.ID_MNT_LST;
RETURN VCur;
EXCEPTION
WHEN OTHERS THEN
IF (VCur%isOpen) THEN
CLOSE VCur;
END IF;
END F_UPDATION_USERID_RPT ;
-----------callRPT.sql ------------------
SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus Report</title> -"
SET ECHO OFF
SET PAUSE OFF
SET VERIFY OFF
SET FEEDBACK OFF
SET HEADING ON
SET LINESIZE 150
set PAGESIZE 85
SET TRIMSPOOL ON PAGESIZE 50
SPOOL D:\Avinash\employee.htm
select Axspointrpt.F_UPDATION_USERID_RPT from DUAL;
clear breaks
TTITLE OFF
SPOOL OFF
SET MARKUP HTML OFF
SET ECHO ON
When i run this SQL file then i am getting the procedure name as well as CURSOR STATEMENT along with the table data.I want get Hide the procedure namd,and cursor statement.Please help in this.
Regards,
[email protected]Hi Avinash,
Try this:
create or replace package dump_refcursor_test is
type return_cur is ref cursor;
function get_data return return_cur;
end dump_refcursor_test;
create or replace package body dump_refcursor_test is
function get_data return return_cur
is
l_cur return_cur;
begin
open l_cur for select 'qwerty' from dual;
return l_cur;
end get_data;
end dump_refcursor_test;
Create a file called spool.sql put it in c:\. Put his in the file:
SET NEWPAGE 0
SET SPACE 0
SET LINESIZE 80
SET PAGESIZE 0
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET MARKUP HTML OFF SPOOL OFF
set sqlprompt "".
var res refcursor;
exec :res:= dump_refcursor_test.get_data;
spool c:\spool_output
print res
spool off
Now go to sql*plus and type this:
@c:\spool.sql
This will give you a file with only the data, here "qwerty"
Regards Pete -
HI
Oracle database issue in reg to
ora-00607 (internal error occured whilemaking changes to a datablock
ora-600(internal error code agruments 4193, 4997, 4526
while database is shutting down.
oracle 10.2.0.1 upgraded to 10.2.0.3
os Linux eS4
please advise to trouble shoot the issue.
PriyankaOk.. I have experience on this issue.. Post your alert log contents (not all )..
I hoping that anybody had come across with issue so that thy can express their views>>>>>>
This is the not right place to put this post.. To get immediate replies, post it on
General Database Discussions
All the best..
Yusuf -
Hi All,
I'm trying to spool records from my Oracle table into a fixed width text file. As you'll see below, I'm using the RPAD function to set the maximum width for my columns but for some reason the spool doesn't recognize the RPAD function and just uses some other arbitrary fixed width. Here's the code that I'm using:
Spool on
SET PAGESIZE 0
SET LINESIZE 1000
set feedback off
set echo off
set termout off
Spool "C:\spool_test.txt"
select
rpad(EDC_PREVALENCE_TIME_CATEGORY,30) as EDC_PREVALENCE_TIME_CATEGORY,
rpad(CRG_METHOD_TYPE,55) as CRG_METHOD_TYPE,
rpad(EDC_AGG_CD,10) as EDC_AGG_CD,
rpad(EDC_AGG_DESC,100) as EDC_AGG_DESC,
rpad(PHN,9) as phn
from table1
where rownum <=1000;
Spool off;Another thing I am trying to do is add the column headings as the first row. I used to have "Set Heading On" at the top of my spool but that didn't seem to work either. I've figured out how to find a workaround to that but if anyone has suggestions I would appreciate it.
Thanks,
EdHi,
spalato76 wrote:
Hi All,
I'm trying to spool records from my Oracle table into a fixed width text file. As you'll see below, I'm using the RPAD function to set the maximum width for my columns but for some reason the spool doesn't recognize the RPAD function and just uses some other arbitrary fixed width. Here's the code that I'm using:
Spool on
SET PAGESIZE 0
SET LINESIZE 1000
set feedback off
set echo off
set termout off
Spool "C:\spool_test.txt"
You seem to be using SQL*Plus, which puts a separator (by default, a single space) between columns.
If you don't want a separator, issue this command
SET COLSEP ""along with your other SET commands, before running the query.
That's 2 double-quotes in a row, with nothing in between them.
select
rpad(EDC_PREVALENCE_TIME_CATEGORY,30) as EDC_PREVALENCE_TIME_CATEGORY,
rpad(CRG_METHOD_TYPE,55) as CRG_METHOD_TYPE,
rpad(EDC_AGG_CD,10) as EDC_AGG_CD,
rpad(EDC_AGG_DESC,100) as EDC_AGG_DESC,
rpad(PHN,9) as phn
from table1
where rownum <=1000;
Spool off;That works for me; I get fixed-length columns exactly as expected.
Whenever you have a question, post CREATE TABLE and INSERT statements for a little sample data. Point out where your query is not getting the results you want, and explain how you get the right results in those places.
See the forum FAQ {message:id=9360002}
Another thing I am trying to do is add the column headings as the first row. I used to have "Set Heading On" at the top of my spool but that didn't seem to work either. I've figured out how to find a workaround to that but if anyone has suggestions I would appreciate it.
SET PAGESIZE 0means no headers will be displayed, regardless of the setting for SET HEADING.
Depending on your version of SQL*Plus, you can set PAGESIZE as high as 50000, so unless you have more than 50000 lines of output, you would only get 1 heading line.
I would use a PROMPT command right before the query:
Spool "C:\spool_test.txt"
PROMPT EDC_PREVALENCE_TIME_CATEGORY CRG_METHOD_TYPE ...
select
rpad(EDC_PREVALENCE_TIME_CATEGORY,30) as EDC_PREVALENCE_TIME_CATEGORY,
rpad(CRG_METHOD_TYPE,55) as CRG_METHOD_TYPE,
...Put exactly as many spaces as you need between the column names.
Alternatively, you could do a query from dual to produce the "headings":
Spool "C:\spool_test.txt"
SELECT RPAD ('EDC_PREVALENCE_TIME_CATEGORY', 30)
, RPAD (CRG_METHOD_TYPE, 55)
FROM dual;
select
rpad(EDC_PREVALENCE_TIME_CATEGORY,30) as EDC_PREVALENCE_TIME_CATEGORY,
rpad(CRG_METHOD_TYPE,55) as CRG_METHOD_TYPE,
...Notice I didn't use column aliases. Column headings are not being displayed, so it doesn't matter if the columns have nice concise aliases or not. -
Hi,
I don't want to make any paging in the spool file but I am always getting a new page after ~65 lines, below my setting:
set verify off
set linesize 3000
set pagesize 6000000
set trimspool on
spool /m/home/omc/aa.txt
select * from KPI order by PST;
spool off
It's under HP-UNIX with Oracle 9i, is there any idea about this issue?
Notice that I did the same under my machine (Windows + Oracle 10g) and everything goes fine (no paging was in the output spool file)!
Thanks in advanceOK, I am entering invalid "pagesize" number. But is there a way that I could disable paging in the output spool file; cause the output of the spool file might be more than 50000 row. I tried to set the "pagesize" to zero, OK it will disable the paging but it's also disable the column heading.
Is there a workaround solution?
Thanks... -
Oracle Installation Issue on windows 7 64 bit - database 11.2.0.3
Hi ,
I am trying to install 11.2.0.3 database on windows 7 prof 64 bit in lenova lap
The issue is at the last screen the installer just hangs in the prerequists check.
this is the installer log out put last portion
INFO: Verification Result for Node:Laksiri
INFO: Expected Value:50MB (51200.0KB)
INFO: Actual Value:664.5859MB (680536.0KB)
INFO:
INFO: *********************************************
INFO: Swap Size: This is a prerequisite condition to test whether sufficient total swap space is available on the system.
INFO: Severity:IGNORABLE
INFO: OverallStatus:SUCCESSFUL
INFO:
INFO: Verification Result for Node:Laksiri
INFO: Expected Value:2.7944GB (2930184.0KB)
INFO: Actual Value:3.7259GB (3906912.0KB)
INFO:
INFO: *********************************************
INFO: Free Space: Laksiri:C:\Users\IBM_AD~1\AppData\Local\Temp: This is a prerequisite condition to test whether sufficient free space is available in the file system.
INFO: Severity:IGNORABLE
INFO: OverallStatus:SUCCESSFUL
INFO:
INFO: Verification Result for Node:Laksiri
INFO: Expected Value:500MB
INFO: Actual Value:93.9114GB
INFO:
INFO: *********************************************
INFO: Architecture: This is a prerequisite condition to test whether the system has a certified architecture.
INFO: Severity:CRITICAL
INFO: OverallStatus:SUCCESSFUL
INFO:
INFO: Verification Result for Node:Laksiri
INFO: Expected Value:64-bit
INFO: Actual Value:64-bit
INFO:
INFO: *********************************************
INFO: Environment variable: "PATH": This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
INFO: Severity:CRITICAL
INFO: OverallStatus:SUCCESSFUL
INFO:
INFO: Verification Result for Node:Laksiri
INFO: Expected Value:5076
INFO: Actual Value:561
INFO:
INFO: All forked task are completed at state performChecks
INFO: Completed background operations
INFO: Moved to state <performChecks>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating view at state <performChecks>
INFO: Completed validating view at state <performChecks>
INFO: Validating state <performChecks>
INFO: Using default Validator configured in the Action class oracle.install.ivw.db.action.PrereqAction
INFO: Completed validating state <performChecks>
INFO: Verifying route success
INFO: Get view named [SummaryUI]
and i found in the windows appliction log
Log Name: Application
Source: Application Hang
Date: 4/17/2012 12:01:24 PM
Event ID: 1002
Task Category: (101)
Level: Error
Keywords: Classic
User: N/A
Computer: Laksiri
Description:
The program javaw.exe version 5.0.300.3 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
Process ID: 6a8
Start Time: 01cd1c618e421f8e
Termination Time: 6
Application Path: C:\Users\IBM_AD~1\AppData\Local\Temp\OraInstall2012-04-17_11-45-50AM\jdk\jre\bin\javaw.exe
Report Id:
Can some one tell what is the reason?Hi,
As far as I can find on Google, I only see people solving a similar problem, by totally removing all Java installation and then install the latest Java 6 update.
Have a look e.g. here: http://www.java-forums.org/awt-swing/34794-java-application-fails-launch-without-error.html
It is not about installing oracle, but the person does have similar problems
Success!!
FJFranken
Edit: Another link: http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/java-tm-platform-se-binary-is-not-responding/38ea1c33-bd72-46aa-b87c-9172be7c57cc?msgId=1b3c5027-bc10-4425-b55c-038982d24953 -
Hi Experts,
I am working on a Report. When I run Report at background,Once the Job gets over two spool lists are generated.
Its like one pool is original and other is like Duplicate one, but the Output remains the same except the one wich has date inthe HEADER of the spool list and other without that date in the other spool list.
Please help me on this issue.
Regards,
VishwaHarish,
Actually some restriction are made in the Basic level, so that I cant change the Batch system field at foreground and test in Dialog process.
Regards,
Vishwa -
Printer spool issue with HP LaserJet 1018
I seem to be having a recurring problem with the HP LaserJet 1018 that I am hoping someone has also had and can help me resolve. When I go to print I get a message that I need to set up a printer (it does not recognize the printer is there). When I click on set up a new printer, I receive a message that the local print spooler service is not running. Nothing I do seems to solve the problem.
This happened to me with my previous 1018 printer. The exact same thing. I had a second 1018 available to me that I connected and it worked just fine for about two months and now is doing the same thing as the first.
I have an HP Pavilion Entertainment PC with Windows 7 (64 bit) operating system. I previously had a Dell with Windows XP that the first printer worked on for a long time (maybe 2+ years). I got this new computer within the past six months and both these printers stopped working while on this computer.
Any help or ideas would be appreciated.Welcome to the HP Forums fastndfury,
I see by your post that you are only getting the error on the Windows 8 computer, "The scanner is currently in use. Please wait until your previous task is completed and then try scanning again." I can help you with this issue.
I have provided a document to go through the steps to see if it will help resolve this issue.
'Another program has control of the scanner' Message Displays on the Computer When Scanning.
If you need further assistance, let me know.
Have a nice day!
Thank You.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP
Maybe you are looking for
-
How do you open multiple email messages at the same time on Mail?
Hi, are there any preferences to control how emails are opened from Mail client. Currently I can only open one emil at a time and can not toggle between messages or even toggle between the inbox view and a single message. This is very frustrating es
-
CMYK JPGs not displaying correctly?
Hello, I receive (and send) a large number of CMYK JPGs via mail.app (OS 10.4.6) and they never seem to display correctly. I did a test with a JPG in CMYK and the same image in RGB and the RGB JPG displays fine. But the CMYK image almost looks as tho
-
How to poke a hole in OVMServer firewall ? (allow a client connection2OVM)
Hi , Can somebody please throw light on allowing a client to connect to an OVMServer through firewalls ? I have tried connecting by bringing the firewall down, I was still not able to connect to OVMServer. Both OVMServer and client are hardwired by e
-
My iPhone stolen and my data on the phone how can deactivate it
How can I deactivate my iPhone I would like to delet my data
-
Using HP product CM 750 A OfficeJet Pro 8600 Plus with ethernet cable connected to Mac 21.5", OSX 10.9.5 Maverick. Running HP version 9.4 (447.2), tried to up date to version 12.34 because of two problems: 1. Amost every time I put the Mac t