CAN USE COPY COMMAND INSIDE PROCEDURE BODY
Hi all
can we use COPY command inside procedure body like this
CREATE OR REPLACE procedure USER2.PRO1
Begin
execute immediate'copy from hr/hr@ERP to USER21/PASS@DB1 append user2.per_images using select * from hr.per_images';
commit;
end;
YOU ADVICE PLEASE
My advice is to check the manual.
SQL*Plus COPY command
http://download.oracle.com/docs/cd/B28359_01/server.111/b31189/ch12016.htm#i2675035
SQL manual index
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/index.htm
PL/SQL manual index
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/index.htm
CTRL-F on the last two for COPY and it appears not.
Similar Messages
-
How to configure host copy command inside EM Console
hi,
I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
Any solution for this
Edited by: mithun on Jun 16, 2011 2:36 AMmithun wrote:
hi,
I want to copy a file from one server to my production server. i found that through host copy command its is possiable in command prompt.but when i configure host copy command inside em console it is not working. i am getting following error
ORA-06550: line ORA-06550: line 3, column 6: PLS-00103: Encountered the symbol "COPY" when expecting one of the following: := . ( @ % ; , column :
Any solution for this
Edited by: mithun on Jun 16, 2011 2:36 AMThis makes no sense whatsoever.
Now, as for your original question, there is not "host copy" command. Not in sqlpus, not in em.
What you are doing in sqlplus is the sqlplus command "host". That is a sqlplus command, documented in the SQLPlus Reference. The sqlplus command "host" takes an argument of an os command (in your case, the OS command is "copy") and creates a sub-process to ask the os to execute that command.
I can't even imagine what you are referring to when you say "when i configure host copy command inside em console". Can you explain in more detail? -
Dabase link while using copy command in Oracle 9i
Hi,
Is it must to have a database link while copying data between two databases in Oracle 9i using COPY command?
I am using the copy command like following:
SQL> copy from xxx/xxx@xyz to abc/abc@stu insert Table using select * from Table
Database link is always required in Oracle 9i to copy data ?
rgds,
KarnaWhen you use the copy command, all you need is that both databases are in the tnsnames.ora file and you can commect using the username/password#sid string. The copy command doesn't use the DBlink.
-
Coppy commit while using copy command
I am seeing the following message when I used Copy command in Oracle 9i.
Array fetch/bind size is 15 (arraysize is 15)
Will commit when done (coppycommit is 0)
Maximum long size is 80 (long is 80)
Could someone tell what does it mean and is there any harm with coppycommit being ZERO ? If so how we could change it ?
DBA was telling the following:
In using the copy command in oracle, not specifying 'arraysize' and 'copycommit' attributes for large records will blow up the rollback segment and return errors.
thanks,
KarnaSQL> show copycommit
copycommit 0
SQL>
SQL> set copycommit 5000
SQL>
SQL> show copycommit
copycommit 5000
SQL>
SQL> show arraysize
arraysize 15
SQL>
SQL> set arraysize 100
SQL>
SQL> show arraysize
arraysize 100
SQL>
SQL> show long
long 80
SQL>
SQL> set long 40000
SQL>
SQL> show long
long 40000
SQL>You rollback size must be in suitably sized for the type of work you are doing. A commit in batches may or may not avoid blowing the rollback segments. A commit in batches does not gurantee not to blowup the RBS. -
Datatype problem while using copy command
Hi all,
I an using copy command to copy data
SQL> copy from xyz/abc@xxx to aaa/sss@aaa create Table1(Name,duration) using select * from Table2The problme is in Table2 duration is like 4.5,but when after copying in Table1 it is coming as 4 .
Could someone help me in fixing this ?
rgds,
Karnatry not defining the columns first, the create will do that.
copy from xyz/abc@xxx to aaa/sss@aaa create Table1 using select * from Table2
I am assuming the table2 only contains the two columns. -
Hi I was trying to join two Ractangle Tool objects but getting this type of Error in illustrator cs6 :-
The selected objects cannot be joined as they are invalid objects,( Compound paths, closed paths, Text Objects, Graphs, Live Paint group).
You can use Join command to connect two or more paths, paths in groups; ot to close an open path.
Please assist me asap.Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
This sound like a firewall issue. I would start by disabling the firewall and seeing if you can connect. If this works then you know where the problem is,
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
Possible Scenarios where we can use OS command of file adapter
Hi all,
I would like to know the possible scenarios in which we can use the OS command feature in file adapter,I have tried zipping the file,copying the file,unzipping the file using this option.Any other inputs on this feature are appreciated.
Thanks,
AmitHi,
Executing Unix shell script using Operating System Command in XI
Executing Unix shell script using Operating System Command in XI
Performing FTP Commands From ABAP
Performing FTP Commands From ABAP
Thanks,
Madhu -
Can use aggregate functions inside cursor
Hi
Can i use aggergate functiions inside cursors because i was getting the below error message when try to execute the below procedure.
I need following thins to implement procedure ,When pass 100 through parameter ,that will check the total count on the table if matches delete the records from table .
create or replace procedure p12(p_count number) is
cnt number :=0;
tot number :=0;
cursor c1 is select count(1),c2,rowid from t1 where
group by c2,rowid;
begin
for y in c1
loop
delete from t1 where row_id=y.rowid;
cnt:=y.cnt+1;
tot:=y.tot+1;
if mod(y.cnt,100)=0
then
dbms_output.put_line(y.tot||'total records deleted');
end if;
end loop;
end;
4/14 PL/SQL: SQL Statement ignored
4/55 PL/SQL: ORA-00936: missing expression
Thanksinadvance
MRI was still getting the error
create or replace procedure p12(p_count number) is
cnt number :=0;
tot number :=0;
cursor c1 is select count(1),c2,rowid from t1
where c2=100
group by c2,rowid;
begin
for y in c1
loop
delete from t1 where rowid=y.rowid;
cnt:=y.cnt+1;
tot:=y.tot+1;
if mod(y.cnt,100)=0
then
dbms_output.put_line(y.tot||'total records');
end if;
end loop;
end;
LINE/COL ERROR
11/1 PL/SQL: Statement ignored
11/8 PLS-00302: component 'CNT' must be declared
12/1 PL/SQL: Statement ignored
12/8 PLS-00302: component 'TOT' must be declared
13/1 PL/SQL: Statement ignored -
Trying to change security preferences so i can use Copy and paste
I am trying to follow the directions in https://developer.mozilla.org/en-US/docs/Midas/Security_preferences so i can add copy and paste to a certain website. when i try to open the "user.js" file i get an error that i took a screenshot of and can be found at http://gyazo.com/9047e8d57d6ffeed09ed570efcc87cc7 . please help
Use keyboard shortcuts if the buttons on the web page or other methods aren't working.
*Copy: Ctrl+C or Ctrl+Insert (Mac: Command + C)
*Paste: Ctrl+V or Shift+Insert (Mac: Command + V)
*Cut: Ctrl+X or Shift+Delete (Mac: Command + X) -
Can't copy text inside stop message box when recording action
Hi everybody, I'm creating a few PS actions and I wrote a piece of text that I want to show by a "insert stop" rule at the begining of every action.
Problem is this: when I copy the text (from TextEdit) and go to the dialogue box on Photoshop, text simply doesn't paste. If i have to write it on every single action it will be a neverending work!
Am I doing anything wrong!?putaaaa wrote:
Hello, my version of PS is CS 5.1 and operating system is OSX 10.7.5, pretty actual I think! and I was using Cmd+C on source and then Cmd+V on PS, of course.
Oh! wait! I have find the problem, post here if usefull for someone getting same fail as me. Problem is that you have to save TextEdit file (or whatever other software) as a "plain text" or "normal text" which means "with no format". By default, TextEdit saves files as "rich text format" files, which Photoshop simply doesn't read.
That's strange because formatted text can be copied in TextPad then pasted into the Action editor in CS5.1 and CS6 on my OS X 10.6.8 machine. Here's screenshots with CS5.1. -
Using dbms_session.reset_package inside procedure
How to use the line dbms_session.reset_package in a procedure.
I used execute immediate 'dbms_session.reset_package' , but it is not executing.
How to execute it
Plese help meWhat do you think should happen when you execute that package?
Or have you yet again ignored even bothering to RFTM the Oracle® Database PL/SQL Packages and Types Reference to see just what this call does?
Quote:
This procedure de-instantiates all packages in this session. It frees the package state.
Memory used for caching the execution state is associated with all PL/SQL functions, procedures, and packages that were run in a session.
For packages, this collection of memory holds the current values of package variables and controls the cache of cursors opened by the respective PL/SQL programs. A call to RESET_PACKAGE frees the memory associated with each of the previously run PL/SQL programs from the session, and, consequently, clears the current values of any package globals and closes any cached cursors.
If you expect PGA to decrease, it will not. Dynamic memory allocation at o/s kernel does not work in such a simplistic way. Memory malloc'ed by an application (like an Oracle dedicated or shared server process) may only be actually freed by the kernel when the process terminates.
Billy -
Copy Command in Pl/Sql block
Can I use Copy command in Pl/Sql.For example :-
Declare
cursor c1 is select table_name from all_tables
where owner = 'LSP' and rownum = 1;
v1 varchar2(2000);
Begin
for c2 in c1 loop
v1:='copy from lsp/lsp123479@dvlaq to scott/[email protected] create '|| c2.table_name ||' using select * from '||c2.table_name;
execute immediate v1;
end loop;
end;
Its not running properly giving an error as invalid Sql statement .
Is it bcoz Copy command cannot be used in a Pl/Sql Block.Is there any other way to move the Table & data to another Data Base .Database link is the obvious one. And the SQL statement would look something like this (on the target database):
SQL> create table FOO nologging as select * from FOO@sourcedb;
However, the first question I always ask if why? What one may think is the solution to a problem is not always the best solution. So one need to identify the problem first, and then see what solutions there are and which one is the best fit.
Other options are replication (using materialised views for example), Data Pump (available with 10G) - even could be Data Guard, a standby database, or a Real Application Cluster... depending on just what the problem and actual requirements are.
Also important to note that SQL*Plus has its own set of commands. Do not confuse these commands (like EXEC, COPY, CONNECT, HOST etc) with the SQL and PL/SQL Languages. Not only are they executed by different software products, SQL*Plus commands are executed on the client and SQL (and PL/SQL) runs inside the Oracle database instance. -
How can we copy personalization from one to an othere resp/function
guys,
As we use people and maintain function to maintain employee information, in this function we have made personalization and working fine, but after restricting function which is appearing on others button like (absence, qualification, previous employer) etc, then we need to create task flow node and configure with new function as copy people function.however, the personalization which was attached People window one is working but new function of people window have without personalization.
So therefore i want to copy all this previous function personalization into new function,
Could you please advice to achive this.
--thanksJust to clarify what you're after, can you confirm that these assumptions are correct:
1) You're not talking about OA Framework personalization on any SSHR page
2) You are referring to the Combined Person and Assignment Form (PERWSHRG) under *HRMS Manager > People > Enter & Maintain
3) You're not talking about Forms Personalization (Help > Diagnostics > Custom Code > Personalize)
4) You are talking about custom Task Flow definitions
Do you want to copy the Task Flows and Upload? You can use a command like this to upload/download task flows. This is an example of downloading/uploading task flow nodes:
1) Submit Processes and Reports > Download HRMS Taskflows
2) Run this FNDLOAD command:
FNDLOAD apps/<apps_pw> 0 Y DOWNLOAD $PER_TOP/patch/115/import/hrwfunit.lct nav_units.ldt HR_NAVIGATION_UNITS
3) Upload:
FNDLOAD apps/<apps_pw> 0 Y UPLOAD $PER_TOP/patch/115/import/hrwfunit.lct nav_units.ldt
If you simply want your copied Function to use the same Task Flow just check it's got the same Form Parameters as the original function definition.
If this doesn't help, please clarify your requirement further. -
Expand/Collapse of structure in Query using WAD command
Hi all,
i have a query in which i have 3 selections inside a formula, and the formula is in collapsed state. Now my requirement is to expand the formula using a button in WAD so that the three selection columns inside the formula can be seen. How can this be realised using specific commands in WAD ?
Kindly help
Snehith.Hi,
you can use the command SET_DRILL_STATE for this:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/7b5f0a95ce12d0e10000000a422035/frameset.htm
As characteristic set the key figure structure.
Best regards,
Janine -
Dbms_session.set_identifier inside procedure
Hi
How can I to use dbms_session.set_identifier inside procedure ?
thank youPerhaps I'm just being dense, but what is the question, exactly?
Do you know, in general, how to call procedure A from procedure B? Or are you asking how to do that?
If you do know, in general, how to call one procedure from another, are you asking what parameters DBMS_SESSION.SET_IDENTIFIER takes? If so, it takes a VARCHAR2, but it seems like you'd know that from whatever documentation you consulted to learn that DBMS_SESSION.SET_IDENTIFIER exists?
Or are you asking something else?
Justin
Maybe you are looking for
-
Spry Collapsible Panel at bottom of page - how to make the browser scrolldown automatically
The question is - i have a collapsible panel at the bottom of my page that I'm using as a footer menu. It is 200px tall. The visitor clicks on "FIND OUT MORE", then the panel opens 200px tall. I want the viewing area of browser to focus on the conten
-
Could you let me know how to enable and use ITS on SAP ECC5 and ECC6
Could you let me know how to enable and use ITS on SAP ECC5 and ECC6
-
my iPhone does not show up on my home computer when I connect to iTunes. It does show on the office computer. Suggests please.
-
i have an ipad mini my little brother lock the ipad and i dont remember de apple id how can i recover it i´m so desesperate
-
Firefox does not allow Gmail to load...stuck on preview mail screen
it says loading, and never loads works fine on chrome and IE pls email suggestion to [email protected]