Performance - SQL Statements- Script needed
Hi All
I am working on Performance Tuning on Oracle 10g/ Solaris environment.
I am looking for a shell script that gives top 10 Time Consuming SQL Statements...... My client does not want me to use statspack or OEM for somereasons which i dont know. I am wondering if any of you might help me out ....
thanks in advance
riah
.>> My client does not want me to use statspack
Your client does not want you to use the scripts provided by Oracle that do exactly what you want but will allow you to run sripts that come from some unknown (to the client, at least) source????
Similar Messages
-
INSERT Script stored as "SQL Statement Script" not firing on Oracle Alert
We are using Alert Manager to run Alerts based on absence information in EBS R12.1.3 HR tables.
Application: Human Resources
Period/Event: Periodic
Frequency: Every Day
The Alert has 2 actions.
One is to email a supervisor based on the Alert SQL finding staff who have had x number of absences over a set period of time.
That is working fine.
The other action is defined as an "SQL Statement Script".
The SQL script inserts the variables defined in the SQL from the main Alert definition SQL, into a custom table.
When the Alert fires, we are getting the email generated, but the INSERT statement isn't firing.
However, when we look at the result of the Alert when it has run, and look at the steps which were fired, we can see the email step and the SQL step. When we look at the SQL in the SQL step which was generated, we can copy and paste it direct into TOAD and it works fine.
We have tried a simple SQL INSERT statement which even just does:
INSERT INTO xx_tmp (VALUE1_DATE, VALUE2) VALUES (SYSDATE, 'this');
But even that does not work.
We wonder if the issue is that we cannot do a direct INSERT from an alert type of "SQL Statement Script"?
We have found another Alert which does a direct UPDATE on a table, but the SQL Statement Script definition has "Purchasing" as the Application, because it's updating a PO table.
In our case, we're trying to insert into a custom table held in our in-house XX schema.
Could the problem be that we don't have the "Application" set? If that's the case, we don't have a corresponding application anyway.
Or can we not do a direct INSERT like this - do we need to use a package instead, and call that?
Any advice much appreciated.
ThanksHi Brian,
Alert issue - Custom SQL fix
1. Define actions via "Actions" button on Alert Definition
2. Create an action for e.g. "Send Message to Supervisor"
Action type: message
Action - sends email to people
3. Create another action called e.g. "Insert Record"
Action type: SQL Statement Script
Fill in SQL in the "Text" section, no need to add a begin or end bit, just a simple INSERT INTO X etc ending with a semi colon
4. Back on the main alert definition window, go to "Action Sets" button
Here, need one SEQ for the Message / Email (e.g. Seq 1), and then click on "Action Set Details" and click on "Members" tab and select the "Send Message to Supervisor" Action
Then close the "Action Set Details" window, and return to the "Action Sets" window
click into 2nd line, add e.g. Seq 2, and call it e.g. "Insert Record", click on "Action Set Details" > Members tab and select the "Insert Record" The problem was that in the first instance, we had a single Action Set, and under "Members" had selected the "Send Message to Supervisor" and "Insert Record" at the same time.
Short answer: each Action needs to be defined as a separate line in the Action Sets definition.
I can send screenshots if you need them, and don't mind putting your email address on this forum.
You can always edit the thread after I've emailed you, to remove your email address. -
How to monitor worst performing sql statements
Hi,
I am new to oracle 9i release 2. I come from the Windows world, where we used sql server.
When we performanced tested our product, we always monitor the worst performaning sql statement using the sql profiler. At the end of a 24 hour test, the profiler will list the sql statement with the longest execution time. What is the equivalent Oracle 9i tools that will allow me to monitor the worst performaning sql during a test that lasts between 10 to 24 hours?
Thanks,
Paul0alBesides statspack and OEM you have a few other options.
If an SQL statement had been identified as performing poorly or a job that you can extract the SQL from then you have the option of explaining all the SQL statements and just reviewing the plans for reasonableness. You can also trace actual execution of the task or individual statemnts (alter session set sql_trace = true for basic 10046 event).
When the SQL has not been identified in advance you can query the shared pool SQL areas for SQL statements that have relatively high physical, logical, or combined IO counts. Then you can perform tuning activities for these statements.
HTH -- Mark D Powell -- -
Alert not firing for SQL Statement Script
Hi All,
I have defined an alter which will trigger when a requisition is stuck with the requestor.
At the time i need to send an email to the requestor and update the status of the requisition to 'INCOMPLETE'.
i have defined two action sets one for email and another for update. The email part is working fine but the sql script which updates the status is not firing.
It is a standard script residing in PO directory sql.
It has two parameters
1) Requisition number 2) org_id
these two are the output of the mail alert query.
i have defined the application as 'Puchasing'
arguments as &SQL_REQ_NUMBER &SQL_ORG_ID
and gave the file name 'poresreq.sql' in the file location.
but the status is not updating.
how can i know the reason for not firing.
Regards,
JanaHi Jana;
What is your EBS and OS? Did you run query manualy? Did you get any error message?
Regard
Helios -
TABLE : A
============================
DATE-------------CCY------ EXCHANGE RATE
============================
1-JAN-2012--------USD-------96.02
2-JAN-2012--------USD-------97.01
3-JAN-2012--------USD-------96.03
6-JAN-2012--------USD-------96.04
REQUIRED TABLE : B
================================
DATE--------------CCY-----------EXCHANGE RATE
================================
1-JAN-2012--------USD-----------------96.02
2-JAN-2012--------USD-----------------97.01
3-JAN-2012--------USD-----------------96.03
4-JAN-2012--------USD-----------------96.03
5-JAN-2012--------USD-----------------96.03
6-JAN-2012--------USD-----------------96.04
7-JAN-2012--------USD-----------------96.04
8-JAN-2012--------USD-----------------96.04
4-SEP-2012--------USD----------------97.0
PROBLEM:Considering Required Table B :
4th & 5th January 2012 are Holidays in order to maintain Exchange rate on holidays as a result we have to set previous exchange rate
for both days (i.e In this case 3rd january's rate is applied on both 4th and 5th january) ,
Similarly, 7th and 8th january are holidays so that's why 6th January's Exchange Rate is applied on both 7th & 8th January.
so,I need to write a query which will give such result as described in table B.955436 wrote:
so,I need to write a query which will give such result as described in table B.Great. So what's the problem you're having in doing that?
You haven't specified your database version for us.
You haven't provided example data in a form we can use (CREATE TABLE/INSERT statements, or a WITH clause).
You haven't specified your expected output based on that example data.
You haven't formatted your code/data using {noformat}{noformat} tags.
Read: {message:id=9360002} -
I am sure some of you will laugh lol, but I am drawing a blank and need some assistance if anyone is willing to help:
I have this query:
SELECT DISTINCT ID
FROM (SELECT productcode
FROM sforce_product2
WHERE productcode NOT LIKE 'DSXXX%'
AND productcode NOT LIKE 'DO NOT USE%'
AND productcode NOT LIKE 'MAXXXX%'
AND isactive = 'true'
MINUS
SELECT productcode
FROM vew_product_export) a,
sforce_product2
WHERE a.productcode = sforce_product2.productcode
which returns 112 ID's (which is wrong)
The inner SELECT statement:
SELECT productcode
FROM sforce_product2
WHERE productcode NOT LIKE 'DSXXX%'
AND productcode NOT LIKE 'DO NOT USE%'
AND productcode NOT LIKE 'MAXXXX%'
AND isactive = 'true'
MINUS
SELECT productcode
FROM vew_product_export
returns 106.
Am I doing something simple wrong or is my query just mangled!
TIA,
MikeSELECT DISTINCT ID
FROM (SELECT productcode
FROM sforce_product2
WHERE productcode NOT LIKE 'DSXXX%'
AND productcode NOT LIKE 'DO NOT USE%'
AND productcode NOT LIKE 'MAXXXX%'
AND isactive = 'true'
MINUS
SELECT productcode
FROM vew_product_export) a,
sforce_product2
WHERE a.productcode = sforce_product2.productcodethe above code is returning an ID column which i think most probable from the sforce_product2 table
while this query below returns the 106 value that is coming from the column productcode.
SELECT productcode
FROM sforce_product2
WHERE productcode NOT LIKE 'DSXXX%'
AND productcode NOT LIKE 'DO NOT USE%'
AND productcode NOT LIKE 'MAXXXX%'
AND isactive = 'true'
MINUS
SELECT productcode
FROM vew_product_exportso i think there is nothing wrong because if you will review the 112 is from the column ID while the 106 is from the column productcode. -
Simple SQl statement help needed!!!
New to SQL..Please can you advice where is the problem..
select file_id, a.file_name, a.sum(bytes/1024/1024) Used_space, b.sum(bytes/1024
/1024) Free_space from dba_data_files a, dba_free_space b where tablespace_name
='DATA_TS' OR tablespace_name='INDEX_TS' OR tablespace_name='LOB_TS' group by fi
le_id
ERROR at line 1:
ORA-00918: column ambiguously defined
Thanks!Hi,
Should you chose to format your SQL the problem is easily seen:
SQL>select file_id
2 ,a.file_name
3 ,a.sum(bytes / 1024 / 1024) used_space
4 ,b.sum(bytes / 1024 / 1024) free_space
5 from dba_data_files a, dba_free_space b
6 where tablespace_name = 'DATA_TS'
7 or tablespace_name = 'INDEX_TS'
8 or tablespace_name = 'LOB_TS'
9 group by file_id;
group by file_id
ERROR at line 9:
ORA-00918: column ambiguously defined
SQL>So, which file_id do you want - a or b?
Regards
Peter -
Sender JDBC adapter : Update SQL Statement : stored procedure
Hi,
Can we use a stored procedure in the sender jdbc adapter in 'Update SQL Statement'.
The problem i am facing is like, we are selecting data from two tables in 'SQL statement for query' and then in 'Update SQL Statement' , we need to delete that data from these two tables.
Please let me know if it is possible.
Thanks,
Rohityou can use a Stored procedure in the
Query SQL Statement
You have the following options:
· Specify a valid SQL SELECT statement to select the data to be sent from the specified database.
· Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.
The expression must correspond to the SQL variant supported by the relevant JDBC driver. It can also contain table JOINs.
so have your whole select and update as part of this single Stored procedure -
As I know in SQL server, i can create a field called customer name, can be two words. But in the SQL statement I need to use double quote to quote the customer name, such like: select * from "customer name"
Can Oracle accept two words field name or table name. If Yes, then do I need to use double quote, or single quote or other things?As I know in SQL server, i can create a field called
customer name, can be two words. But in the SQL
statement I need to use double quote to quote the
customer name, such like: select * from "customer
name"
Can Oracle accept two words field name or table name.
If Yes, then do I need to use double quote, or single
quote or other things?Yes, you can do it.
However, most DBAs (even MS SQL Server ones) will tell you that that is bad form.
And of course the reason for doing that should never be because those field names are being displayed. Displaying field names breaks every model that seperates data from display (GUI.) -
Update record using SQL statement
I have VB6.0 and Oracle 10G Express Edition in Windows 2000 Server. My procedure in VB 6.0 can't update record in the table using SQL statement, and the Error Message is " Missing SET keyword ".
The SQL statement in VB6.0 look like this :
General Declaration
Dim conn as New ADODB.Connection
Dim rs as New ADODB.Recordset
Private Sub Command1_Click()
dim sql as string
sql = " UPDATE my_table " & _
" SET Name = ' " & Text3.Text & " ' " & _
" AND Unit = ' " & Text2.Text & " ' " & _
" WHERE ID = ' " & Text1.Text & " ' "
conn.Execute (sql)
Private Sub Form Load()
Set conn = New ADODB.Connection
conn.Open "Provider=MSDASQL;" & "Data Source=my_table;"& "User ID =marketing;" & "Password=pass123;"
I'm sorry about my language.
What's wrong in my SQL statement, I need help ........ asap
Best Regards,
/Harso AdjieThe syntax should be
UPDATE TABLE XX
SET FLD_1 = 'xxxx',
FLD_2 = 'YYYY'
WHERE ...
'AND' is improperly placed in the SET. -
SQL Statement ignored performing List of Values query
Hi, New user just learning the basics. I have created a simple table PERSON with columns, ID, firstname, lastname, phone, city, State_ID
Then clicked create Lookup table - State_Lookup with columns State_ID and State_Name.
I create a page, include all columns from PERSON. For State the field is a select list that should do a lookup form the STATE_LOOKUP table. (I have entered 4 states in the table)
I am getting the following error however:
Error: ORA-06550: line 1, column 14: PL/SQL: ORA-00904: "STATE_ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored performing List of Values query: "select STATE_ID d, STATE_ID v from STATE_ID_LOOKUP order by 1".
I have not entered any sql, just selected all of my options using defaults and dropdowns. What is causing the error and what do I need to change?
ThanksOkay, learned something: The database link name used, must not contain a dash. The DB_DOMAIN is appended automatically when you create a DB link, so if IT contains a dash, the db link name does as well. Check DBA_DB_LINKS to make sure you don't hit this well-hidden feature.
Regards
Martin Klier
[http://www.usn-it.de|http://www.usn-it.de] -
Need a sql statement to remove data?
Hello,
I need your help regarding my query.
I need to put a sql statement in a shell script that will delete records from a table that is > than 3 months old and if not, do nothing.
The table has a DATE column as shown below:
LOG_ID NOT NULL VARCHAR2(8)
LOG_TYPE NOT NULL VARCHAR2(8)
LOG_MESSAGE NOT NULL VARCHAR2(255)
LOG_DATE DATE
I'm a novoice at sql and request you to provide me a sql statement that will do the above.
Much appreciated!
Regards,SQL> select sysdate from dual;
SYSDATE
14-JUL-09
SQL> select add_months(sysdate,-3) from dual;
ADD_MONTH
14-APR-09
SQL> select add_months(sysdate,-3)-1 from dual;
ADD_MONTH
13-APR-09
DELETE FROM {table_name} WHERE HIREDATE<={pick the date format from above accordingly} -
CJS-00084 SQL Statement or Script failed. Error Message: Executable
Hello
Hello
I am facing one problem at the time of installing 4.7 IDES can you please guide me on that. Do I need to reinstall system ageing or it can be sort it out in this stage.
ERROR AT THE TIME OF INSTALLING SAP 4.7 IDES ARE
1. CJS-00084 SQL Statement or Script failed. Error Message: Executable
C:\oracle\ora92/bin/sqlplus.exe returns 3.
2. FJS-00012 Error when executing script.
Complete error log :--
INFO 2000-06-15 20:56:57
Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
INFO 2000-06-15 20:56:57
Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
INFO 2000-06-15 20:56:57
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
INFO 2000-06-15 20:56:58
Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 20:57:00
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 20:57:00
FJS-00012 Error when executing script.
INFO 2000-06-15 20:56:57
Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: C:\oracle\ora92\database\initGOD.ora.
INFO 2000-06-15 20:56:57
Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
INFO 2000-06-15 20:56:57
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl stat' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl stat' returned with '3'.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\lsnrctl.log.
INFO 2000-06-15 20:56:58
See 'C:\oracle\ora92/bin/lsnrctl start' output in 'C:\SAPinst ORACLE KERNEL\lsnrctl.log'.
INFO 2000-06-15 20:56:58
'C:\oracle\ora92/bin/lsnrctl start' returned with '0'.
INFO 2000-06-15 20:56:58
Copying file D:/SAP_DUMP/CD1/KERNEL/NT/COMMON/INSTALL/ORADBUSR.SQL to: ./oradbusr.sql.
INFO 2000-06-15 20:56:58
Creating file C:\SAPinst ORACLE KERNEL\oradbusr.sql.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 20:56:59
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 20:57:00
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 20:57:00
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:28
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:28
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:29
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:29
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:37
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:37
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:37
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:37
FJS-00012 Error when executing script.
INFO 2000-06-15 21:04:51
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:04:51
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:04:51
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:04:51
FJS-00012 Error when executing script.
WARNING 2000-06-15 21:07:00
Error 2 (The system cannot find the file specified.
) in execution of a 'CreateProcess' function, line (276), with parameter (C:\oracle\ora92/bin/sqlplus.exe /NOLOG @ora_scr_tmp.sql).
ERROR 2000-06-15 21:07:00
MDB-06029 Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
ERROR 2000-06-15 21:07:00
MDB-06030 A call to the system library failed. System error message: [No such file or directory].
ERROR 2000-06-15 21:07:00
MUT-02011 Internal error: A call to syslib failed. System error message: No such file or directory.
ERROR 2000-06-15 21:07:00
FJS-00012 Error when executing script.
WARNING 2000-06-15 21:11:52
Error 1326 (Logon failure: unknown user name or bad password.
) in execution of a 'LogonUser' function, line (537), with parameter (SAPTRANSHOST\godadm).
ERROR 2000-06-15 21:11:52
MDB-06029 Caught exception while trying to start script executing application: [C:\oracle\ora92/bin/sqlplus.exe].
ERROR 2000-06-15 21:11:52
MDB-06030 A call to the system library failed. System error message: [Unknown error].
ERROR 2000-06-15 21:11:52
MUT-02011 Internal error: A call to syslib failed. System error message: Unknown error.
ERROR 2000-06-15 21:11:52
FJS-00012 Error when executing script.
INFO 2000-06-15 21:11:53
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:11:54
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:11:54
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:11:54
FJS-00012 Error when executing script.
INFO 2000-06-15 21:13:42
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-15 21:13:42
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-15 21:13:42
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-15 21:13:42
FJS-00012 Error when executing script.
INFO 2000-06-16 02:00:06
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:00:07
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:00:07
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:00:07
FJS-00012 Error when executing script.
INFO 2000-06-16 02:08:16
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:08:16
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:08:18
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:08:18
FJS-00012 Error when executing script.
INFO 2000-06-16 02:09:48
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:09:49
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:09:49
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:09:49
FJS-00012 Error when executing script.
INFO 2000-06-16 02:14:33
Changed working directory to C:\SAPinst ORACLE KERNEL.
INFO 2000-06-16 02:14:33
Changed working directory to C:\SAPinst ORACLE KERNEL.
ERROR 2000-06-16 02:14:33
CJS-00084 SQL Statement or Script failed. Error Message: Executable C:\oracle\ora92/bin/sqlplus.exe returns 3.
ERROR 2000-06-16 02:14:33
FJS-00012 Error when executing script.> WARNING 2000-06-15 21:07:00
> Error 2 (The system cannot find the file specified.
> ) in execution of a 'CreateProcess' function, line
> (276), with parameter
> (C:\oracle\ora92/bin/sqlplus.exe /NOLOG
> @ora_scr_tmp.sql).
> ERROR 2000-06-15 21:07:00
> MDB-06029 Caught exception while trying to start
> script executing application:
> [C:\oracle\ora92/bin/sqlplus.exe].
> ERROR 2000-06-15 21:07:00
> MDB-06030 A call to the system library failed.
> System error message: [No such file or directory].
> ERROR 2000-06-15 21:07:00
> MUT-02011 Internal error: A call to syslib failed.
> System error message: No such file or directory.
> ERROR 2000-06-15 21:07:00
> FJS-00012 Error when executing script.
> WARNING 2000-06-15 21:11:52
> Error 1326 (Logon failure: unknown user name or bad
> password.
> ) in execution of a 'LogonUser' function, line (537),
> with parameter (SAPTRANSHOST\godadm).
> ERROR 2000-06-15 21:11:52
> MDB-06029 Caught exception while trying to start
> script executing application:
> [C:\oracle\ora92/bin/sqlplus.exe].
is that file there (sqlplus)?
as which user are you installing?
Markus -
SQL 4.7 Installation Error CJS-00084 SQL Statement or Script failed
Dear SAP Gurus,
pl do let me know hoe to resolve this error.......
"""CJS-00084 SQL Statement or Script failed"""
my ora_sql_results file is like that..
===========================================
2008-10-25, 16:14:44 SAPINST ORACLE start logging for
connect / as sysdba ;
@@"C:\SAPinstORACLEKERNEL/oradbusr.sql"
exit;
Output of SQL executing program:
SQL*Plus: Release 9.2.0.2.0 - Production on Sat Oct 25 16:14:44 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected.
Connected.
old 3: if substr(upper('&&1'),1,5) = 'SAPR3' then
new 3: if substr(upper('SAPERP'),1,5) = 'SAPR3' then
old 6: if upper('&&2') = 'NT' then
new 6: if upper('NT') = 'NT' then
old 13: :sDomain := upper('&&3');
new 13: :sDomain := upper('ERP');
old 17: :sSchema := upper('&&1');
new 17: :sSchema := upper('SAPERP');
old 18: if upper('&&2') = 'NT' then
new 18: if upper('NT') = 'NT' then
old 25: :sDomain := upper('&&3');
new 25: :sDomain := upper('ERP');
using following Parameters:
. Oracle SID: ERP
. Oracle Version: 9.2.0.2.1
. Parametervalue os_authent_prefix: OPS$
. Database User (Schema): SAPERP
. SAP R/3 Administrator: OPS$ERP\ERPADM
. SAP R/3 Serviceuser: OPS$ERP\SAPSERVICEERP
O/S Message: No such file or directory
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.2.0 - Production
SAPINST: End of output of SQL executing program F:\oracle\ora92/bin/sqlplus.exe.
SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.
2008-10-25, 16:14:44 SAPINST ORACLE stop logging
=======================================
My SAPINST_ORA_ENVIRONMENT FIle is like that
==========================================
2008-10-25, 16:10:43 SAPINST Current process environment:
=::=::\
=C:=C:\SAPinstORACLEKERNEL
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\tanya\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=ERP
ComSpec=C:\WINDOWS\system32\cmd.exe
DBMS_TYPE=ORA
DBS_ORA_SCHEMA=SAPERP
dbs_ora_tnsname=ERP
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\tanya
JAVA_HOME=C:\j2sdk1.4.2_09
JSERV=F:\oracle\ora92/Apache/Jserv/conf
LOGONSERVER=
ERP
NLS_LANG=AMERICAN_AMERICA.WE8DEC
NUMBER_OF_PROCESSORS=2
ORACLE_HOME=F:\oracle\ora92
ORACLE_SID=ERP
OS=Windows_NT
Path=F:\oracle\ora92\bin;$PATH$
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramFiles=C:\Program Files
SAPDATA_HOME=F:\oracle\ERP
SAPEXE=F:\usr\sap\ERP\SYS\exe\run
SAPLOCALHOST=ERP
SAPSYSTEMNAME=ERP
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
USERDOMAIN=ERP
USERNAME=tanya
USERPROFILE=C:\Documents and Settings\tanya
windir=C:\WINDOWS
WV_GATEWAY_CFG=F:\oracle\ora92\Apache\modplsql\cfg\wdbsvr.app
SAPINST: End of current process environment.
=====================================
REgards,
AbhishekThanks, but most of the people in the industry are still using the same, and it is working on their Machine
As far as I remember 9.2.0.2 was never released, one needed to install at least 9.2.0.4 (or .5). That´s why the official installation guides tell you to install the latest patches PLUS the latest interim patches for the database.
On top of that, Oracle 9.2 is out of extended support already, I would get a new installation CD set with Oracle 10g and use that for a new installation.
why it is not working on my machine?
Because those old database versions have many bugs that are fixed with patches - so why do you want to run such an old version if one KNOWS that it´s buggy and there are patches to fix those errors?
secondly from where i will get the latest patches, as told by you. pl do let me know any website from where i can down load them
Check
Note 938986 - Oracle Database 9.2: Patches for 9.2.0
Markus -
Sql Server Script for the List of all Country State and City
I am searching for the Sql Server Script of all country State and City with the Following type
For the Country only 2 Columns are there i.e. CountryId and CountryName(CountryId is primary Key)
For the State 3 Columns are there i.e. CountryId, StateId and StateName(StateId is Primary Key and CountryId is Foreign Key)
For the City 3 Columns are there i.e. StateId ,CityId and CityName(CityId is PrimaryKey and StateId is foreign Key).
I need this type of Script with Column name. plzzz help me out i m stuck i didnt get the list as i want.
Thanx and Regrads,Hi Vishnu,
According to your description, you want to list all countries, states and cities, right?
I have tested it on my local environment, here is a sample script for you reference.
select
[dbo].[Country].[CountryId]
, [dbo].[Country].[CountryName]
, [dbo].[State].[StateId]
, [dbo].[State].[StateName]
, [dbo].[City].[CityId]
, [dbo].[City].[CityName]
from
[dbo].[Country]
left join [dbo].[State] on [dbo].[Country].[CountryId]=[dbo].[State].[CountryId]
left join [dbo].[City] on [dbo].[State].[StateId]=[dbo].[City].[StateId]
Regards,
Charlie Liao
TechNet Community Support
Maybe you are looking for
-
Custom OS X Lion Wallpaper not rendering correctly
Upgraded to Lion on Wednesday July 20th (Final Release) I have tried rebooting to correct the serious rendering issue that my iMac 27" (Late 2009) had with this custom wallpaper after upgrading to lion yesterday. Before upgrading snow leopard had no
-
Question about switching from pc to mac
I am going to be purchasing a new computer in March. I am seriously considering switching to a mac. I've owned a mac before and I obviously have my reasons for wanting to go back...however...I've always been a pc and all of my software is pc based...
-
XL Reporter- Expressions in Parameters.
Hi, In XL Reporter for a UDF field we needed to allow users to select multiple options. E.g. for a UDF field named "Country" which includes a list of countries if the user wants to select all the countries he/ she should be allowed to multi select t
-
as mentioned in the title
-
I'm unable to view a multiple page pdf document using Safari. A locked padlock appears in the right corner of the tab. Thanks