How to run catexp.sql
hi gurus,
I have read to export properly, we have run this file.
Can you please tell me how to run it.
On a no problem fresh installation there should be no reason to run this file. That being said, this file can be run from the command prompt/command shell ON THE SERVER using:
sqlplus "sys/password as sysdba" @$ORACLE_HOME/rdbms/admin/catexp.sql
(note the space between login and @ sign.
Similar Messages
-
Oracle 9i export error after running catexp.sql file
After running catexp.sql file in oracle 9i 9.2.0.7.0 as system user,it gives the following error while logging
ORA-04020: deadlock detected while trying to lock object SYS.DBMS_STANDARD
please help me.............."catexp.sql" is to be run by SYS AS SYSDBA.
You'd have to cleanup any extra objects that you created in the SYSTEM account.
Why did you think that you needed to run "catexp.sql" ? Are you exporting using 9i exp against a 10g database or against a 9i database ? -
How to run the SQL Script in SQL Prompt?
Hi ExpertGroup,
I have written one SQL Script name called "MySQLSCript.SQL". I want to know how to run the SQL Script in SQL Prompt?.
Generally, I run SQL Script in PL/SQL Developer tool. But In this case, some SET command is not working/supporting in PL/SQL Developer Tool.
Let me know, How to Run in SQl Prompt.
Thanks & Regards,
Senthil K Kumar.This is my SQL Script....
SET COLSEP '|'
SET LINESIZE 32767
SET PAGESIZE 50000
/* SET LINESIZE 3000
SET PAGESIZE 50000
SET DEFINE OFF */
SET ECHO OFF
SET FEEDBACK OFF
--SET HEADING OFF
SET TRIMSPOOL ON
SET NEWPAGE NONE
SET UNDERLINE OFF
SPOOL &&EnterPath;
SELECT * FROM &&TableName;
SPOOL OFF
SET FEEDBACK ON
--SET DEFINE ON
PROMPT Done.
I am able to run this script in SQL Prompt....
Its executing fine...
But, If I am executing again it maynot asking for new set of data....
alternativily its taking old values only.....
how can i exeute with new set of data in the sql prompt..... -
How to run a SQL manually with the same SQL_ID
I want to know how to run a SQL which comes from application side manually so that same SQL_ID is generated. I am aware that even if there is a small change in the sql(even a space) the sql_id gets changed. CURSOR_SHARING_PARAMETER is similar in my DB.
Thanks
RudreshI think you really want is the execution plan (plan_hash_value), what about outlines ?
HTH
Antonio NAVARRO -
How to run PL/SQL commands in this SQL browser
How to run PL/SQL commands in this SQL browser
This discussion should help Re: my pl/sql codes does not run in express edition what can i do????
-
How to run wfstatus.sql for i-Expenses
how to run wfstatus.sql for i-Expenses in 11i EBS.
Pl see MOS Doc 295078.1 (Maintenance Pack, Patchset, and Rollup Patch Level for Internet Expenses 11i)
HTH
Srini -
How to run a sql script in oracle forms
Hi,
For me there is an sql script. I need to run that sql script in forms.
Actually we will run that sql file in pl/sql developer by giving @and the file name.
But how to run that file in forms.
Can any one help on these.Which book I have to look.
ThanksActually there is a script files which will drop all the indexes and tables.
DROP querry will be there for each index and each table.
So I run the script all the indexes and all the tables will be deleted. So using forms I have to run that script.
Thanks -
How to Run a .sql file from simple java class
How to execute a .sql file consisting of Complex Queries,procedures through simple java class.
The queries may have different delimiters,queries independant of each other.
I am able to do with Specific De-limiter.But I need in such a way that there should not be any
Constraints. Since My .sql may Contain different De-limiters.
If any one can Suggest Some Solution.
It will be Great Help.
regards
AnilCheck out ibatis script runner, it' a third party library but quite handy for running sql files...
m -
How to run recordset SQL query in FORM DATA event
How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?
Hi Slamet,
When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
<i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
Hope it helps
Trinidad. -
Export - running catexp.sql
Hi all,
I am running the catexp.sql file so that I can export the database but I am getting loads of errors. I've listed some of them below. I've logged into SQL*Plus as system/manager. Can anyone help me please?
Thanks.
ERROR at line 1:
ORA-00942: table or view does not exist
FROM sys.obj$ o$, sys.ind$ i$, sys.file$ f$, sys.ts$ t$
ERROR at line 7:
ORA-00942: table or view does not exist
grant select on sys.exu8uscu to public
ERROR at line 1:
ORA-01031: insufficient privileges
nullCATEXP must be run as SYS or INTERNAL.
-
How to run a SQL Server Stored Procedure
I need to run a SQL Server Stored Procedure in answer, the stored procedure use a hash table (temporary table) and I nedd to pass a parameter to stored procedure
anyone know if is it possible in OBIEE, if yes how.
thank you
maxthank you, but I'm not understand what you mean. I need to run this command in answer "direct access database"
exec storedprocedure 1,1,1
if I run this I receive thi error:
error : [nQSError: 16001] ODBC error state: S0002 code: 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server]object name '#TempList' not valid.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000).
here is the code of stored procedure:
ROC [dbo].[GetOrderListmax]
@OrderList varchar(500)
AS
BEGIN
SET NOCOUNT ON
CREATE TABLE #TempList
OrderID int
DECLARE @OrderID varchar(10), @Pos int
SET @OrderList = LTRIM(RTRIM(@OrderList))+ ','
SET @Pos = CHARINDEX(',', @OrderList, 1)
IF REPLACE(@OrderList, ',', '') <> ''
BEGIN
WHILE @Pos > 0
BEGIN
SET @OrderID = LTRIM(RTRIM(LEFT(@OrderList, @Pos - 1)))
IF @OrderID <> ''
BEGIN
INSERT INTO #TempList (OrderID) VALUES (CAST(@OrderID AS int)) --Use Appropriate conversion
END
SET @OrderList = RIGHT(@OrderList, LEN(@OrderList) - @Pos)
SET @Pos = CHARINDEX(',', @OrderList, 1)
END
END
SELECT o.OrderID, CustomerID, EmployeeID, OrderDate
FROM dbo.Orders AS o
JOIN
#TempList t
ON o.OrderID = t.OrderID
END -
How to run dynamic SQL from an ODI procedure step
I am on ODI 11.1.1.6.4. From within an ODI IKM step I have no problem running a procedure step like the following which calls a pl/sql procedure to get SQL text then later runs that code. Is there anyway to do the same from within an ODI procedure? I've tried a couple of variations and can not seem to get the parsing levels to resolve within a procedure like they resolve from within a KM step.
<@
/* Setup Java variables */
String out_SQL = "";
try
java.sql.Connection sourceConnection = odiRef.getJDBCConnection("SRC");
String sqltxt = "{call set_sql(?)}";
java.sql.CallableStatement pstmt = sourceConnection.prepareCall(sqltxt);
try
pstmt.registerOutParameter( 1, java.sql.Types.VARCHAR);
pstmt.execute();
out_SQL = pstmt.getString(1);
catch(java.sql.SQLException ex)
errMessage = ex.getMessage();
errMessage = errMessage.replace("'","");
finally
pstmt.close();
catch(java.lang.Exception e)
errMessage = e.getMessage();
errMessage = errMessage.replace("'","");
@>
BEGIN
-- The SQL that I want to run
<@
out.println(out_SQL);
@>
-- Error handling
<@ if ( out_SQL.length() ==0 ) { @>
raise_application_error(-20101, '<@=errMessage@>');
<@ } else { @>
dbms_output.put_line('Successful.');
<@ } @>
END;
------Please understand that I know that I can do this all within PL/SQL -- I am explicitly doing it the way I have outlined because I want to better understand the parsing levels/behavior within ODI procedures and I want to understand why KMs steps behave differently.
Another observation -- putting this all within a pl/sql block prevents ODI from properly capturing insert/update/delete row counts like it would if it were running a SQL statement.
So the question remains -- is there a way to run a dynamic SQL statement in an ODI procedure where the SQL statement is generated from within an Oracle procedure call and then run as SQL within an ODI procedure step? Best would be if there is an example of how this can be done. -
How to run @catbundle.sql
Hello
we are planning to apply patch for our Oracle RDBMS 11.2.0.2(3 node RAC) on RHEl 5.6.The patch is GI PSU 11.2.0.2.7
Now in the post-installation steps i need to run catbundle.sql script, for that do i need to shutdown the database(all instances), startup only one instance, run the script and start the database(all instances) or i can run the script from one instance with all remaining instances up and running.
ThanksHi;
As mention here you can find how you should use catbundle.sql in patch's read me part.
I suggest also review:
catbundle.sql - FAQ [ID 834644.1]
Introduction To Oracle Database catbundle.sql [ID 605795.1]
Regard
Helios -
Hi
eBS
DB: 11.1.7
APS: R12.1.2
Does anyone who can guide me how to run script for .sql
I need command on how to execute this |
Run the script poxrespo.sql in the PO_TOP/sql directory
ThanksDoes anyone who can guide me how to run script for .sql
I need command on how to execute this |
Run the script poxrespo.sql in the PO_TOP/sql directoryConnect as apps user to SQL*Plus as run the script.
Make sure COMMIT is issued -- Release Notifications Error - ORA-20002 2018 Unable To Generate The Notification Content [ID 342734.1
Thanks,
Hussein -
How to run the .sql file in sql prompt?
i want to run the .sql file in sql prompt
Hi,
You can navigate to the directory where the .sql files is stored and launch the SQL Prompt.
After you login, you can run your script like this :
SQL>@my_script.sql;
Regards,
Sandeep
Maybe you are looking for
-
Can i install itunes multiple times on one computer for multiple users?
Can i install itunes multiple times on one computer for multiple users?
-
Connection failed when attempting to connect to computer on network
It's always worked before. File sharing is enabled on both machines. I can see the computer on the network. I've repaired permissions, and rebooted both machines. But the connection times out with the following message. Connection failed The server m
-
Cloud Computing Decrease Job Opportunity
Hi Guru's, I have a query about Cloud Computing now everyone talking about the same, that from 2014 companies start thinking about the same. So it means DBA jobs are less in market So What need to do to cope up with this possibility. Kindly guide ove
-
I need to reset my security questions and answers. But nit is saying my birthday for a verification is invaid. How can I reset all of this?
-
Can I print without both black cartridges???? HPC5380
This printer has 5 cartridge slots - black, blue, yellow, magenta + slot for large black. I replaced the 4 normal sized and left the large one empty because I wont be printing at that volume and simply don't need it. Now I have an error message on t