Database termination Problem
Hi every body ..plz help me on this..
We are facing database termination problem in ECC6 production syste.
Database: Oracle 10.2, O/S: Windows 2003. Spam :27, SP level 13.
Error is:
Errors in file f:\oracle\p02\saptrace\background\p02_ckpt_6520.trc:
ORA-00206: error in writing (block 3, # blocks 1) of control file
ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF'
ORA-27072: File I/O error
OSD-04008: WriteFile() failure, unable to write to file
O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
When we are performing backup then data base termination occuring freequently.
Give right solution as early as possible.
Thanks,
Nani.
Hi,
Have a look at below snote which actually speaks about the oracle error codes
Snote : 546006
within the Snote it says :-
" If you cannot access a database file (for instance a data file, control file or RedoLog) for whatever reason, an ORA-270xx appears. The actual cause comes from additional error messages (usually in the operating system) that occur on ORA-270xx. "
And as per your last update
" ORA-00206: error in writing (block 3, # blocks 1) of control file
ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF' "
i think there is problem accessing the database control file. Hence you are facing the above problem.
I think if you recreate your control file i think, it should resolve the problem.
Hope it will be helpful to resolve your problem.
Rgds
Radhakrishna D S
Similar Messages
-
Weird Terminal problem with AIX
Hi,
I have kind of an odd problem with the Terminal.app that I hope someone can assist me in figuring out.
I'm connecting to an AIX 5.3 server and the top portion of the window is always "cut off". It's there, it's just one screen up in the buffer and I can't figure out why. I can connect with iTerm and things display appropriately.
Below is a link to a side by side picture of Terminal.app (left) and iTerm (right). If I scroll up in the Terminal.app buffer, I can see the missing lines from the top of the screen.
http://picasaweb.google.com/andy.black10/Misc#5407855064094337554
Thanks,
AndyMinor point: would you please fill in your Forum profile information, at least the Mac OS X operating system version.
I'm currently using Leopard and I can reproduce this problem in Terminal vs iTerm. I used your script output (thank you) in order to generate the escape sequences.
BY THE WAY, if the script output contains any sensitive login info, you might want to change your password on the Pharamcy OSU system
It looks like there is a Terminal problem handling Scrolling Regions as set by <esc>[1;24r. It looks like <esc>[0J is not erasing from the current cursor position to the end of the display, but rather it starts the erase above the current cursor position. The erase behavior without a scrolling region appears better, but not perfect.
I would encourage you to file a bug with Apple at either:
<http://www.apple.com/feedback/macosx.html>
or
<http://bugreporter.apple.com>
Free ADC (Apple Developer Connection) account needed for BugReporter
The BugReporter would be better.
If you want, I have a little script that can be used to demonstrate the problem
#!/usr/bin/env bash
echo -e "e[1;24re[He[0Je[He[0Je[?6he[1;24re[He[0Jc"
for j in {1..3}
do
echo BEFORE should remain on screen $j $j $j $j $j
done
for j in {4..23}
do
echo FILLER should be erased $j $j $j $j $j
done
echo -e "e[4;24re[He[0Jc"
for j in {4..23} # our next command prompt will be 24th line
do
echo AFTER should remain on screen $j $j $j $j $j
done
Here is example output from Terminal:
BEFORE should remain on screen 1 1 1 1 1
AFTER should remain on screen 4 4 4 4 4
AFTER should remain on screen 5 5 5 5 5
AFTER should remain on screen 6 6 6 6 6
AFTER should remain on screen 7 7 7 7 7
AFTER should remain on screen 8 8 8 8 8
AFTER should remain on screen 9 9 9 9 9
AFTER should remain on screen 10 10 10 10 10
AFTER should remain on screen 11 11 11 11 11
AFTER should remain on screen 12 12 12 12 12
AFTER should remain on screen 13 13 13 13 13
AFTER should remain on screen 14 14 14 14 14
AFTER should remain on screen 15 15 15 15 15
AFTER should remain on screen 16 16 16 16 16
AFTER should remain on screen 17 17 17 17 17
AFTER should remain on screen 18 18 18 18 18
AFTER should remain on screen 19 19 19 19 19
AFTER should remain on screen 20 20 20 20 20
AFTER should remain on screen 21 21 21 21 21
AFTER should remain on screen 22 22 22 22 22
AFTER should remain on screen 23 23 23 23 23
and here is example output from iTerm:
BEFORE should remain on screen 1 1 1 1 1
BEFORE should remain on screen 2 2 2 2 2
BEFORE should remain on screen 3 3 3 3 3
AFTER should remain on screen 4 4 4 4 4
AFTER should remain on screen 5 5 5 5 5
AFTER should remain on screen 6 6 6 6 6
AFTER should remain on screen 7 7 7 7 7
AFTER should remain on screen 8 8 8 8 8
AFTER should remain on screen 9 9 9 9 9
AFTER should remain on screen 10 10 10 10 10
AFTER should remain on screen 11 11 11 11 11
AFTER should remain on screen 12 12 12 12 12
AFTER should remain on screen 13 13 13 13 13
AFTER should remain on screen 14 14 14 14 14
AFTER should remain on screen 15 15 15 15 15
AFTER should remain on screen 16 16 16 16 16
AFTER should remain on screen 17 17 17 17 17
AFTER should remain on screen 18 18 18 18 18
AFTER should remain on screen 19 19 19 19 19
AFTER should remain on screen 20 20 20 20 20
AFTER should remain on screen 21 21 21 21 21
AFTER should remain on screen 22 22 22 22 22
AFTER should remain on screen 23 23 23 23 23 -
Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem
Hi,
I failed to connect Tomcat 5.0.24 with Postgresql
7.4.2. The files created by me and the changes i had
made in the existing files are rates.jsp,
conversionDAO.java, web.xml and server.xml. The error
message on the top of the rest of it was "The value of
useBean class attribute converter.conversionDAO is
invalid". So far I found out that the coding for
database connectivity purpose in conversionDAO.java
cause the error. Another thing is Postgresql jdbc
driver is required to set in the CLASSPATH for the
java file to access the Postgresql database. I don't
know where should I put it in Tomcat for web
application. Anyway, I put it in
$CATALINA_HOME/shared/lib according the book i
refered. I do the database connectivity coding refer
to the Tomcat Kick Start book from Sams Publishing.
Below are the coding involved, please show me the
mistake i had made. Thank you.
----server.xml----
<Context path="/database"
docBase="${catalina.home}/webapps/database" debug="0"
reload="true">
<ResourceParams name="jdbc/conversion">
<parameter>
<name>username</name>
<value>myusername</value>
</parameter>
<parameter>
<name>password</name>
<value>mypassword</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>org.postgresql.Driver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:postgresql://localhost/conversion</value>
</parameter>
</ResourceParams>
</Context>
----web.xml----
<servlet>
<servlet-name>conversionDAO</servlet-name>
<servlet-class>converters.conversionDAO</servlet-class>
</servlet>
<resource-ref>
<res-ref-name>jdbc/conversion</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
----conversionDAO.java----
public conversionDAO() throws SQLException,
NamingException
Context init = new InitialContext();
Context ctx = (Context)
init.lookup("java:comp/env");
DataSource ds = (DataSource)
ctx.lookup("jdbc/conversion");
con = ds.getConnection();
select = con.prepareStatement(
"SELECT rate FROM Exchange WHERE src= ? AND dst =Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
Errors log
2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
----more---- -
Database configuring problem in setup of managed systems in SMD
Hello,
i'm doing the setup of a CRM 5.0 in SMD Abap+Java and the setup results returns following:
"Database configuration problem" with the exception:
java.lang.NullPointerException
at com.sap.smd.server.manager.SMDPluginProperties.setProperty(SMDPluginProperties.java:114)
at com.sap.smd.agent.plugins.database.ConfigurationTask.configureCustomProperties(ConfigurationTask.java:242)
at com.sap.smd.agent.plugins.database.ConfigurationTask.configureProperties(ConfigurationTask.java:370)
at com.sap.smd.agent.plugins.database.ConfigurationTask.execute(ConfigurationTask.java:124)
at com.sap.sup.admin.setup.AppCfgTasks.configureDbApp(AppCfgTasks.java:115)
at com.sap.sup.admin.setup.SetupStep.execute(SetupStep.java:202)
at com.sap.smd.agent.plugins.remotesetup.SapInstance.setup(SapInstance.java:217)
at com.sap.sup.admin.setup.SapCluster.setup(SapCluster.java:461)
at com.sap.sup.admin.setup.SapCluster.access$000(SapCluster.java:26)
at com.sap.sup.admin.setup.SapCluster$SetupRunner.run(SapCluster.java:669)
at java.lang.Thread.run(Thread.java:534)
Anybody knows which can be the problem?
Thanks a lot
CarlosHi Shriraj,
ensure that the installation path is correct. I only put /urs/sap/<SID> and you must put /usr/sap/<SID>/DV***/.
In my case with that the setup returns all in green.
I hope it helps you
Regards
Carlos -
SIMPLE Database Design Problem !
Mapping is a big problem for many complex applications.
So what happens if we put all the tables into one table called ENTITY?
I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
Definition of the table
ENTITY
EntityID > uniqueidentifier
EntityType > Tells the entityTypeName
Name >
LastName >
CompanyName > 300 attributeTypes
OppurtunityPeriod >
PS:There is also another table called RELATION that points the relations between entities.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
check the coloumn with WHERE _entityType='PERSON'
as there is is clustered index on entityType...there
is NO performance decrease.
there is also a clustered index on RELATION table on
relationType
when we say WHERE _entityType ='PERSON' or
WHERE relationType='CONTACTMECHANISM'.
it scans the clustered index first.it acts like a
table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
WHERE _entityType ='PERSON'
AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Have you ever thought of using constraints in your
modell? How would you realize those?
...in fact we did.We have arranged the generic object
model in an object database.The knowledge information
is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
But the data schema is held in the RDBMS with code
generation that creates a schema to hold data.If you think that this approach makes sense, why not.
But in able to have a efficent mapping and a good
performance we have thought about building only one
table.The problem is we know we are losing some space
but the thing is harddisk is much cheaper than RAM
and CPU.So our trade off concerated on the storage
cost.But I still wonder if there is a point that I
have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
PS: it is not wise effective using generic object
models also in object databases as CPU cost is a lot
when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
PS2: RDBMS is a value based system where object
databases are identity based.we are trying to be in
the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
C. -
Database connection problem when i try store the values in JTable
Hi Sir,
I have a database connection problem when i try to store the data's in a JTable.I think the problem is with in the database connection.I have used 3 vectors here.The database which i have used is
Access.Where the program is compiling well.But when i run it only the first column heading is printed and error message showing that
"Invalid Cursor State".I need to solve this problem.pls. do help me.
I will provide u with the code.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import java.sql.*;
public class DataBaseVector extends JPanel
//Container contentPane=getContentPane();
JScrollBar jsb = new JScrollBar(JScrollBar.HORIZONTAL);
JScrollBar jsb1 = new JScrollBar(JScrollBar.VERTICAL);
Image i1;
String url="jdbc:odbc:Ananth";
Vector col=new Vector();
Vector rows=new Vector();
Vector rdata=new Vector();
Connection conn;
public DataBaseVector()
//super("JTable With ScrollBars");
this.setLayout(new BorderLayout());
UIManager.put("ScrollBar.track",Color.red);
UIManager.put("ScrollBar.thumb",Color.blue);
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection(url); // Is there any problem here?
Statement st=conn.createStatement();
ResultSet rs=st.executeQuery("Select * from AccountMaster");
// rs is the result set obtained
ResultSetMetaData rsmd=rs.getMetaData();
int cols=rsmd.getColumnCount();
for(int i=1;i<=cols;i++)
col.addElement(rsmd.getColumnName(i));
rdata.addElement(rs.getString(i));
rows.addElement(rdata);
}catch(Exception e)
System.out.println("The Error Message was:"+e.getMessage());
JTable jt=new JTable(rows,col);
int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp=new JScrollPane(jt,v,h);
this.add(jsp,BorderLayout.CENTER);
this.add(jsb, BorderLayout.SOUTH);
this.add(jsb1, BorderLayout.EAST);
public static void main(String args[])
JFrame jf=new JFrame();
JPanel frame=new DataBaseVector();
jf.getContentPane().add(frame);
jf.setSize(800,600);
jf.setVisible(true);
Thanx,
m.ananthuThe problem is ResultSet.next() is not called.
Try this and modify the table creation as you need.
ResultSetMetaData rsmd=rs.getMetaData();
int cols=rsmd.getColumnCount();
while(rs.next()) {
for(int i=1;i<=cols;i++)
col.addElement(rsmd.getColumnName(i));
rdata.addElement(rs.getString(i));
rows.addElement(rdata);
Hope this helps -
WLI 7.0 samples database setup problem
I have just installed WL Platform 7.0. I want to run the WLI samples and did the following:
1. Started "Integration Database Wizard" for WLI samples and performed "SwitchDB"
- provided valid database properties for oracle. Completed successfully - config.xml
for samples is updated.
2. Ran RunSamples script - Gives database connect problems and database is not created.
The user/pwd/machine name/SID are all correct.
I observed that as part of "RunSamples", it again invokes "SwitchDB" (command I see
is "switchdb oracle"). This resets the database properties in config.xml to the defaults
- so obviously this is causing the connection problem.
Pls let me know what is going wrong here?
ThanksGarf,
You are correct in your analysis. When you run the 'RunSamples' script,
it will call switchdb and this causes the 'defaults' to be set in
config.xml. Running the wliconfig utility is the customer experience
BEA would like to have with regard to setting up the database. However,
the RunSamples script has not been updated to correctly reflect that the
customer would have already performed this step. When RunSamples calls
switchdb, it is getting the defaults from the following location:
<USER_DEFINED_DOMAIN>/dbInfo/<DATABASE>/setDBVars and setDBVarsExt files
So for example, if you accepted the default user directory and your
BEA_HOME is C:/bea and you were using the EAI Domain template calling
your domain eaidomain and your are using Oracle, you should update the
following files:
C:\bea\user_projects\eaidomain\dbInfo\oracle\setDBVars.cmd and
setDBVarsExt.cmd
Edit these files to reflect your DB connection properties.
When RunSamples calls switchdb, these properties will be used to update
the wliPool in config.xml. I hope this helps and sorry for the
inconvenience.
Cheers,
Chris
Garf wrote:
I have just installed WL Platform 7.0. I want to run the WLI samples and did the following:
1. Started "Integration Database Wizard" for WLI samples and performed "SwitchDB"
- provided valid database properties for oracle. Completed successfully - config.xml
for samples is updated.
2. Ran RunSamples script - Gives database connect problems and database is not created.
The user/pwd/machine name/SID are all correct.
I observed that as part of "RunSamples", it again invokes "SwitchDB" (command I see
is "switchdb oracle"). This resets the database properties in config.xml to the defaults
- so obviously this is causing the connection problem.
Pls let me know what is going wrong here?
Thanks -
Oracle Database Starting Problem
Hi all,
i am having database startup problems.
my database is working fine but when i try to connect as sysdba then i get the following error
Connected to an idle instance.
SQL> select status from v$instance;
select status from v$instance
ERROR at line 1:
ORA-01034: ORACLE not available
i have also checked the listener and it is also working fine.
Instance "orcl", status READY, has 3 handler(s) for this service...
The process is also shown by the pmon command, check through operating system command
ps -aef |grep pmon
oracle 3235 2816 0 18:08:15 pts/3 0:00 grep pmon
oracle 22425 1 0 12:01:57 ? 0:08 ora_pmon_orcl
Please let me know what to do.
regards,
Imran RazaHi Laura,
Please find below
bash-3.00$ echo $ORACLE_SID
orcl
bash-3.00$ ./lsnrctl status
LSNRCTL for Solaris: Version 10.1.0.5.0 - Production on 17-FEB-2009 18:58:55
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=silverApp0)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Solaris: Version 10.1.0.5.0 - Production
Start Date 17-FEB-2009 11:51:42
Uptime 0 days 7 hr. 7 min. 13 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/dba/OraHome1/network/admin/listener.ora
Listener Log File /oracle/dba/OraHome1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=silverApp0)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl.silverapp0.com" has 1 instance(s).
Instance "orcl", status READY, has 3 handler(s) for this service...
The command completed successfully -
Statement terminator problems when exporting data with SQL Developer 3.2
I've ran across what appears to be a bug with SQL Developer 3.2.20.09. If someone can let me know if this is indeed a bug, or just something I need to configure differently, please let me know.
The problem is related to exporting a database as a SQL script, and terminator characters at the end of "create" statements, especially when columns have comments, and problems that occur when using SQLPlus to run the export script to create the tables. With the old SQL Developer 1.5.4, with the "Terminator" and "Pretty Print" options checked, statements like the following are generated:
-- DDL for Type NUM_ARRAY
CREATE OR REPLACE TYPE "NUM_ARRAY"
IS TABLE OF NUMBER(20)
-- DDL for Sequence MYTABLE_SEQ
CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ;
-- DDL for Table MYTABLE
CREATE TABLE "MYTABLE"
( "MYTABLE_ID" NUMBER,
"COL2" NUMBER,
"COL3" NUMBER
-- DDL for Table ANOTHERTABLE
CREATE TABLE "ANOTHERTABLE"
( "ANOTHERTABLE_ID" NUMBER,
"COL2" VARCHAR2(1024),
"COL3" VARCHAR2(1024)
COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.';
When I then run the script using SQLPlus, everything works fine. However, with SQL Developer 3.2.20.09, with the same options enabled, the same statements are generated like this:
-- DDL for Type NUM_ARRAY
CREATE OR REPLACE TYPE "NUM_ARRAY"
IS TABLE OF NUMBER(20)
-- DDL for Sequence MYTABLE_SEQ
CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ;
-- DDL for Table MYTABLE
CREATE TABLE "MYTABLE"
( "MYTABLE_ID" NUMBER,
"COL2" NUMBER,
"COL3" NUMBER
-- DDL for Table ANOTHERTABLE
CREATE TABLE "ANOTHERTABLE"
( "ANOTHERTABLE_ID" NUMBER,
"COL2" VARCHAR2(1024),
"COL3" VARCHAR2(1024)
COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.';
Notice all of the extra slashes in there. If a slash is not used as a statement terminator, SQLPlus treats slashes as a command to repeat the last SQL statement, which causes many errors about tables or sequences already existing. So, I tried removing the "Terminator" flag from the export options. This lead to statements that looked a bit more promising:
-- DDL for Type NUM_ARRAY
CREATE OR REPLACE TYPE "NUM_ARRAY"
IS TABLE OF NUMBER(20)
-- DDL for Sequence MYTABLE_SEQ
CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE
-- DDL for Table MYTABLE
CREATE TABLE "MYTABLE"
( "MYTABLE_ID" NUMBER,
"COL2" NUMBER,
"COL3" NUMBER
-- DDL for Table ANOTHERTABLE
CREATE TABLE "ANOTHERTABLE"
( "ANOTHERTABLE_ID" NUMBER,
"COL2" VARCHAR2(1024),
"COL3" VARCHAR2(1024)
COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.'
The big problem, though, is in the statement for the table with a comment. Notice that there are two statements, but there is not a semicolon after either of them. This unfortunately causes the "COMMENT" statement to be appended to the "CREATE TABLE" statement before being executed, which causes the table to not be created (which causes even more errors later on when the script attempts to populate the table with data).
So, it would appear that this is a bug, but I'm not sure. Is there a way I can configure the export options to make SQL Developer export these statements like it used to in older versions?
Thanks,
-Bill>
So, it would appear that this is a bug, but I'm not sure.
>
That would be a bug. Thanks for reporting it and providing the detailed example.
>
Is there a way I can configure the export options to make SQL Developer export these statements like it used to in older versions?
>
No.
Leave the thread open. One of the developers for sql developer should be monitoring the forum and can provide more information. -
Database connectivity problem with instant client.
Guys,
I've installed the Oracle instant client basic and ODBC files in my system.
But when I create a system DSN and test the connectivity my database connectivity,it fails with
ORA-12637:Packet receive failed error
My TNSNAMES reads below:
ONDSP101.DIGITALINDIASW.NET =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = namesrv1.xy.zz.com)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ONDSP101)
and my SQLNET as below:
AUTOMATIC_IPC = OFF
TRACE_LEVEL_CLIENT = ON
SQLNET.INBOUND_CONNECT_TIMEOUT=20
NAMES.DEFAULT_DOMAIN = na.pg.com
NAME.DEFAULT_ZONE = na.pg.com
SQLNET.CRYPTO_SEED = "kdg:9yv2$-plo*u6b2x!"
NAMES.DIRECTORY_PATH = (ONAMES,TNSNAMES)
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP.xy.zz.com)
(PROTOCOL = TCP)
(Host = namesrv1.xy.zz.com)
(Port = 1522)
(ADDRESS =
(COMMUNITY = TCP.xy.zz.com)
(PROTOCOL = TCP)
(Host = namesrv2.xy.zz.com)
(Port = 1522)
I've placed my TNSNAMES and SQLNET file in the same folder having the instant client files and I've set my TNSADMIN,LD_LIBRARY_PATH and PATH environmental variable to the folder location.
Note:I'm able to connect to the database using SQLplus.
Thanks,
Bhagat12637, 00000, "Packet receive failed"
// *Cause: A process was unable to receive a packet from another process.
// Possible causes are:
// 1. The other process was terminated.
// 2. The machine on which the other process is running went down.
// 3. Some other communications error occurred.
// *Action: If the cause is not obvious, contact Oracle Customer Support.
These days I very seldom use ODBC for Oracle - most recently it was simply to get Enterprise Architect to "talk" to Oracle. I never used it for my client applications (unlike in the fast distant past), so what I know about ODBC is seriously outdated.
Even so, a few comments. :-)
Have you tried creating a user DSN, in case a system DSN somehow works different environment wise?
The above error description sounds like the original TCP connection was successful (i.e. it is not a host unknown or not reachable error). Subsequent packets seem to fails.
To confirm, run the listener on namesrv1.xy.zz.com with logging enabled and have a look at the listener.log - does it show a connection being accepted/handled from your PC when you use the ODBC DSN?
Have you tried the Oracle ODBC drivers? When getting EA connected I had problems (also with Instant Client) and Microsoft ODBC driver for Oracle. Downloaded and installed the Oracle ODBC driver and it worked just fine first time around.
PS. You should raise this topic on the Instant Client Forum instead. -
Database Initialization Problem in Linux
Hi
This is the first time I am using oracle in linux.Over here we have installed Oracle 9.2.0.1.0 in RedHat linux 9 with a RAM of 512 MB and a hard disk of 80 GB.The problem is that when we start sqlplus as sysdba .I am saying "startup" to initialise the DB ....The process of starting was slow ...and finally I was getting "end-of-file communication" error ...I read somewhere in the Alert Log that we need to give atleast half the RAM size in the shmmax ...I did that and restarted the server ....Now when I follow the same procedure I am getting a different error in the SQL prompt
ORA-01092: ORACLE instance terminated. Disconnection forced
in the LOG file I am getting the lines
Errors in file /usr1/app/oracle/product/9.2.0.1.0/rdbms/log/tsh1_ora_1140.trc:
ORA-01403: no data found
Error 1403 happened during db open, shutting down database
USER: terminating instance due to error 1403
Instance terminated by USER, pid = 1140
ORA-1092 signalled during: ALTER DATABASE OPEN...
Please help me in this regard ..as this is urgent ...ThanxThere are the latest entries in the file alert_%^$%^.log
I am getting a EINVAL problem here as I reverted back to the original value of my shmmax ...for previous entries where my shmmax was half the size of my 512MB ram I dint get that problem
Fri May 13 16:36:40 2005
Starting ORACLE instance (normal)
Fri May 13 16:36:40 2005
WARNING: EINVAL creating segment of size 0x0000000003000000
fix shm parameters in /etc/system or equivalent
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 2
Using log_archive_dest parameter default value
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.1.0.
System parameters with non-default values:
processes = 50
shared_pool_size = 4194304
control_files = /usr1/app/oracle/oradata/TSH1/control/ora_control1, /usr1/app/oracle/oradata/TSH1/control/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
parallel_max_servers = 5
max_dump_file_size = 10240
db_name = TSH1
PMON started with pid=2
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
Fri May 13 16:36:43 2005
ALTER DATABASE MOUNT
Fri May 13 16:36:47 2005
Successful mount of redo thread 1, with mount id 1076997467.
Fri May 13 16:36:47 2005
Database mounted in Exclusive Mode.
Completed: ALTER DATABASE MOUNTFri May 13 16:36:47 2005
ALTER DATABASE OPEN
Fri May 13 16:36:47 2005
Beginning crash recovery of 1 threads
Fri May 13 16:36:47 2005
Started first pass scan
Fri May 13 16:36:47 2005
Completed first pass scan
8 redo blocks read, 5 data blocks need recovery
Fri May 13 16:36:47 2005
Started recovery at
Thread 1: logseq 51, block 3, scn 0.511026
Recovery of Online Redo Log: Thread 1 Group 1 Seq 51 Reading mem 0
Mem# 0 errs 0: /usr1/app/oracle/product/9.2.0.1.0/dbs/log1TSH1.dbf
Fri May 13 16:36:48 2005
Ended recovery at
Thread 1: logseq 51, block 11, scn 0.531072
5 data blocks read, 5 data blocks written, 8 redo blocks read
Crash recovery completed successfully
Fri May 13 16:36:48 2005
Thread 1 advanced to log sequence 52
Thread 1 opened at log sequence 52
Current log# 2 seq# 52 mem# 0: /usr1/app/oracle/product/9.2.0.1.0/dbs/log2TSH1.dbf
Successful open of redo thread 1.
Fri May 13 16:36:48 2005
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri May 13 16:36:48 2005
SMON: enabling cache recovery
SMON: enabling tx recovery
Fri May 13 16:36:48 2005
Database Characterset is US7ASCII
Updating 7.0.0.0.0 NLS parameters in sys.props$
-- adding 9.2.0.1.0 NLS parameters.
Fri May 13 16:36:49 2005
Errors in file /usr1/app/oracle/product/9.2.0.1.0/rdbms/log/tsh1_ora_1107.trc:
ORA-01403: no data found
Error 1403 happened during db open, shutting down database
USER: terminating instance due to error 1403
Instance terminated by USER, pid = 1107
ORA-1092 signalled during: ALTER DATABASE OPEN... -
Database restore problem with BRTOOLS
Hi Experts,
I am tring to migrate an SAP system from host A to host B.
OS: windows server 2003 DB: oracle 10g
Homogeneous migration.
The database were backed up with BRTOOLS (whole database offline backup) to Location L:\QCO_BCK @hostA
After that I moved folder QCO_BCK together with folder "sapbackup" from hostA to hostB, placed under F:\QCO_BCK
And then start to perform "whole database reset" with BRTOOLS, but BRTOOLS can not verify the datafile/control files since they are under different location(hostA and hostB), So, I modified initQCO.ora and the BRTOOLS log file begprhrg.afd, all the relevant directories were changed from L:\ to F:\, after trying again, BRTOOLS performed well, all datafiles, redo logs, control files were copied to the right location, but problems encountered at step 7 - "open database and post-processing", BRTOOLS returns oracle error message:
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: 'H:\oracle\QCO\sapdata5\system_1\SYSTEM.DATA1'
database can be mounted but can not be open.
I think this is because the control file is the old one which records the old file locations in hostA, in hostA, file SYSTEM.DATA1 actually located under H:\ but in hostB, it is copied under D:\
My question is:
1. Is it obligatory by BRTOOLS that the file structure on hostB(new) must be totally the same as hostA(old)? if the file (for example) SYSTEM.DATA1 is located at H:\ of hostA, then, in new hostB, it must be located at the same directory H:\?
2. Is there any workaround to open the database in this situation? like modifing the control file?
Thank you in advance.
FreshmanHi Sunny and Juan,
Thanks so much for your valuable information for me.
Yes, before restoring the DB, I used oraBRCopy tool to generate CONTROL.SQL and CONTROL.TRC file. But I didn't execute CONTROL.SQL after that. I'd like to know which timepoint should I execute it to generate the new control file? (file directory had already been corrected within CONTROL.SQL). is it before doing step 7: open database and post-processing, I should open a new command windows to enter SQLPlus to execute CONTROL.SQL? I tried to do this:
SQL>conn / as sysdba
Connected to an idle instance.
SQL>@C:\CONTROL.SQL
Oracle instance started
Total system global area xxx bytes
Fixed size xxx
varianble size xxx
Control file created.
SQL>alter database open;
alter database open
Error at line 1
ORA-01589 must use RESETLOGS or NORESETLOGS option for database open.
SQL>alter databse open resetlogs;
Error at line 1
ORA-01092: oracle instance terminated.Disconnected forced.
Strange thing is, in my last trial, when I execute step 7: open database and post processing, BRRECOVER gives me two sub options:
1 ~ Reset logs option (reset_logs) ..[resetlogs]
2 * Open databse command (command) .[alter database open resetlogs]
the final result is:
ORA-01139: Resetlogs option only valid after and incomplete database recovery.
I am not familiar with oracle db and is totally confused/frastrated now... Please kindly help.
Thank you very much
Freshman -
Dear Team ,
During Full Online backup . I am facing the problem . The BRBACKUP Detail Log is
BR0051I BRBACKUP 7.00 (18)
BR0055I Start of database backup: bdzbskui.fnt 2008-10-21 09.42.40
BR0477I Oracle pfile /oracle/PRD/102_64/dbs/initPRD.ora created from spfile /oracle/PRD/102_64/dbs/spfilePRD.ora
BR0280I BRBACKUP time stamp: 2008-10-21 09.42.41
BR0301E SQL error -1587 at location BrCtlCopy-1, SQL statement:
'/* BRBACKUP */ ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/PRD/sapbackup/cntrlPRD.dbf''
ORA-01587: error during control file backup file copy
ORA-27091: unable to queue I/O
ORA-27072: File I/O error
HPUX-ia64 Error: 2: No such file or directory
Additional information: 4
Additional information: 195
Additional information: 417792
BR0320E Copying of control file to /oracle/PRD/sapbackup/cntrlPRD.dbf failed
BR0314E Collection of information on database files failed
BR0056I End of database backup: bdzbskui.fnt 2008-10-21 09.42.41
BR0280I BRBACKUP time stamp: 2008-10-21 09.42.41
BR0054I BRBACKUP terminated with errors
please help
manuone active control file is enough for database to run, you can do copy/paste on line, but make sure that what you do. make sure that all the control files are in same in size.
i suggest you make a copy of existing control file and then perform copy.
For example the control files details:
SQL> show parameter control_files;
NAME TYPE VALUE
control_files string /oracle/PRD/sapdata1/cntrl/cntrlPRD.dbf,
/oracle/PRD/sapdata2/cntrl/cntrlPRD.dbf,
/oracle/PRD/saparch/cntrl/cntrlPRD.dbf
cheers,
-Sunil -
Database creation problem on Windows XP
Hello Readers
I have installed ORACLE Database Engine on windows XP.
I am facing problem in database creation.
I have tryed wizard as well as mannual method.
in wizard at 90% it gives an error "END-OF-FILE ON COMMUNICATION CHANNEL"
although CD drive is in CR Rom drive.
Please help me ....
Rashid Masood Ashraf
email: [email protected]After going to the properties as you suggested:
Right now the Obtain an IP address automatically is checked
I need to check the Use the following IP address:
What should I enter for
IP address:
Subnet mask:
Default gateway:
Please help.
Edited by: Nel Marcus on Dec 2, 2008 3:49 PM -
Database Connection Problem in Oracle9i Lite Web-to-Go
Hi
I am having problem in the Database Connectivity. I am using the OracleDriver class for the connection and have defined the DataSource in the struts-config.xml as
<data-sources>
<data-source>
<set-property property="driverClass"
value="oracle.jdbc.driver.OracleDriver" />
<set-property property="url"
value="jdbc:oracle:thin:@192.50.200.201:1521:WEBTOGO.WORLD" />
<set-property property="maxCount"
value="5"/>
<set-property property="minCount"
value="1"/>
<set-property property="user"
value="master"/>
<set-property property="password"
value="ramchow"/>
</data-source>
</data-sources>
But when I am trying to do any database transaction it is throwing the following exception..
log9: [ERROR] ActionServlet - -Initializing application data source org.apache.s
truts.action.DATA_SOURCE <java.sql.SQLException: Io exception: Connection refuse
d(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505
)(EMFI=4))))>java.sql.SQLException: Io exception: Connection refused(DESCRIPTION
=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:361)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at org.apache.struts.legacy.GenericDataSource.createConnection(GenericDa
taSource.java:805)
at org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.jav
a:741)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe
rvlet.java:1085)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at oracle.lite.web.JupServlet.createInstance(JupServlet.java:349)
at oracle.lite.web.JupServlet.getServlet(JupServlet.java:322)
at oracle.lite.web.JupServlet.service(JupServlet.java:216)
at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:297)
at oracle.lite.web.JupApplication.service(JupApplication.java:550)
at oracle.lite.web.JupHandler.handle(JupHandler.java:109)
at oracle.lite.web.HTTPServer.process(HTTPServer.java:306)
at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
at oracle.lite.web.JupServer.handle(JupServer.java:310)
at oracle.lite.web.SocketListener.process(SocketListener.java:172)
at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:226
log9: javax.servlet.UnavailableException: Initializing application data source o
rg.apache.struts.action.DATA_SOURCE
log9: at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe
rvlet.java:1091)
log9: at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
log9: at javax.servlet.GenericServlet.init(GenericServlet.java:258)
log9: at oracle.lite.web.JupServlet.createInstance(JupServlet.java:349)
log9: at oracle.lite.web.JupServlet.getServlet(JupServlet.java:322)
log9: at oracle.lite.web.JupServlet.service(JupServlet.java:216)
log9: at oracle.lite.web.AppServletHandler.handle(AppServletHandler.java:297)
log9: at oracle.lite.web.JupApplication.service(JupApplication.java:550)
log9: at oracle.lite.web.JupHandler.handle(JupHandler.java:109)
log9: at oracle.lite.web.HTTPServer.process(HTTPServer.java:306)
log9: at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
log9: at oracle.lite.web.JupServer.handle(JupServer.java:310)
log9: at oracle.lite.web.SocketListener.process(SocketListener.java:172)
log9: at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:226.
Can anybody guide me what can be the problem asap.
regards
ramchowRamesh,
This looks like it might be a Java class mismatch error. Do you have multiple versions of Java installed on your machine? If so, you may want to keep one version and remove the rest.
If you're already running just one version, you may want to check the registry and classpath for references to multiple Java versions, or version that no longer exist.
Please let me know if you have additional questions.
Junius
Maybe you are looking for
-
Download CS5 Design Standard Trial?
How do I download the Design Standard trial??? I keep getting redirected to design Premium. I know there isn't much difference but I definitely would want Standard over Premium.
-
Backup VHD size is much more than expected and other backup related questions.
Hello,I have few windows 2008 server and i have scheduled the weekly backup (Windows Backup) which runs on saturday. I recently noticed that the actual size of the data drive is only 30 GB but the weekly backup creates a VHD of 65 GB.This is not happ
-
How to pass a result set as an output parameter
I have a function that will be used as a web service. It invokes a stored procedure - ideally I'd like to pass the result set from the SP out as a result set to the client consuming the web service. Is this do-able or am I in dreamland?
-
User define Function at Mapping Time
Hello Everyone, My requirement is I input the one value to the user define function (at mapping time). That function calls the RFC to R/3 system and return the 3 output values. Now my question is how can I return 3-output value from the user define f
-
How to visualise BCC in old emails
I had to change mailsoftware my old data transferred fine to Thunderbird but there are some e-mails with BCC-addresses I would like to review but cannot make the BBC visible in older e-mails, is that possible? Thanks in advance! André