Run the package to a different schema
Hi all
I have a very strange (at least for me) problem with a package to run in the production environment.
The package has been installed in the application schema and in the same schema for all tables that are in the same table.
The customer reported a slowdown in the performance of it, but if I test it in my PR env and:
-If I run the application outside of the package, it run very fast
-If I install the package in my personal schema and run it, it run very fast
-If I run the package, installed on the application's schema, is very slow!
What is the difference between these three methods?
Thank you in advance,
Diego
91ca5e2c-8db6-4563-9e70-c98e10acf2ad wrote:
OK, to start my procedure I used Notepad anonym in plsqldeveloper:
Start
Appuser.pkgapp.prcursors (vcode =>: vcode, pcursor =>: pcursor);
end;
when I try to get the cursor, with plsqldeveloper, I have different response time for:
-package in my user-> very fast
-package to the user of the application-> very slow
OK - but that the above code does not recover. All this shows is a call to the procedure who, do you think, does that open the cursor.
Once a cursor is opened the procedure who opened it has NO control over it. Only the session making the recovery is involved as is an Oracle process on the backend. But the procedure/package is NOT involved.
If the location of the package does NOT affect actual recovery, but it can affect the execution plan used when the cursor is opened first.
New - when you say "run the code" you tell fetch data? Or are you talking about just open the cursor as the example above shows?
Display actual execution plan - get it from a trace file, if you need to.
other things to say is that the number of lines to get out are some ten years.
The question is always this THAT IS SLOW? It is the RECOVERY of these lines "a few ten at most? Or is it just open the cursor so that you can begin to pick up?
You need to SHOW US (just tell us):
1. WHAT you do
2. HOW you do
3. WHAT results you get
4. WHAT results you expect to get
Tags: Database
Similar Questions
-
Sample package, cursor to different schema
Hello
Oracle 11.2.0.1
Windows 7 Edition Home Premium 64-bit
Can someone give me please an example below the installation program:
User2 wants to create a package (pkg1 name) in which he wants to write:
and username is set before running the package, assume he has "USER1".
cursor c_emp select * of & username.emp; <-User2 is entitled to select on the table emp to the User1. TableName is fixed, but the same table name can be in different patterns, so before running the package, username assigned somewhere in the .sql file using ACCEPT varname GUEST.
Example becomes more complicated when User3 would run the .sql file in which:
The util_3 wants to open the cursor user2.pkg1.c_emp in its packaging.
I will be grateful to you if you please give me a small example in action please.
I reason my request please?
Thanking you.user12050217 wrote:
Currently, there are 20 drawings in my production database. Each schema is to have their own set of tables, functions, procedure etc.
This is not bad. A schema can also be used a logical database.
The issue is to have 20 copies of the same database logic - assuming that there is a problem on your side. Make a change to this logical database or PL/SQL code, becomes quite complex as there are has 20 copies to maintain and update.
Invariably, these 20 copies will become out of sync that changes are made to some and not others. This becomes a nightmare very administrative complex.
Oracle supports a feature called virtual private databases (VPDB). This allows to create a database of unique scheme/logic and use it for a number of different users. We use this feature for example in production, where a single logical database schema supports 500 corporate clients.
VPDB requires Oracle Enterprise Edition. So if you do not use that, you will need to look at other options to support multiple clients/users in Oracle without having to duplicate the code and logical databases.
Some time (in fact, its many time however) we need to produce a report that is based on a table that is named TRANBKUPS (Backup operation Table, who have different columns according to the drawing and the nature of the transaction, but some of them are the same as TRAN_ID (using the MASTER. (SEQUENCE), DRIVER_BONUS etc., but PASSENGER_NAME, TRAN_DATE, AGE, AMOUNT etc. are different). So, what I'm looking for, fires:
Select TRAN_ID, TRAN_DATE,QUANTITY. TRANBKUPS... order in... There are a number of technical means for this. You can use dynamic SQL statements. You can use the interfaces of PL/SQL that returns a ref cursor Etc.
However, the technical solution to use depends on the functional problem that must be solved. For example, what determines what patterns should be used and which not? Where is should the output of the cursor go? Are there performance problems that can be solved by running this process in parallel? For example if tranbackup of the 10 schema tables must be processed, the session can start 10 jobs and process these 10 tables at the same time.
What is important but don't use NO SQL * for this conduct. IT a command line client Oracle. It is not like a programming tool for developing and managing the treatment conditional and exception management and so on.
Develop using PL/SQL.
-
dbms_job. Submit not run the package
Hi all
We have just updated the oracle 10g to 12 c
Select * from version $ v
--==============================================================
12 c Oracle database Release 12.1.0.1.0 - 64 bit Production 0
PL/SQL Release 12.1.0.1.0 - Production 0
CORE 12.1.0.1.0 Production 0
AMT for 64-bit Windows: Version 12.1.0.1.0 - Production 0
NLSRTL Version 12.1.0.1.0 - Production 0
--================================================================
declare
a directory;
l_procedure_to_run varchar2 (100): =.
' app_boxes_cust. RunInterface (100,14141, "cust_rel.txt", "c:\Files\cust_rel_exp", 972); " ;
date of p_date_to_run: = TO_DATE (' November 20, 2014 ', ' dd/mm/yyyy ');
Start
dbms_job. Submit (a, l_procedure_to_run, p_date_to_run);
commit;
end;
The dbms_job.submit generates job_id but it does not run the package.
--=========================================================================
Select broken, failures to dba_jobs where job = 63;
broken = ' don't
Chess = NULL.
Please your HELP
Thanks in advance,
Naama
Check next_date when he intended to run.
Check job_queue_processes parameter.
Check if the Scheduler is disabled.
-
Source code is the same name but different schema owner
I got 1 of the online test and there the question has been asked. I have already answered but curious to cross-check my response with your advice...
Question
You want to see the source code of your defined package 'test1' and you issue the following query:
Select the text in all_source
WHERE name = "test1";
After executing query, you have noticed that the result has 1 or more of source code with the code source test1 with the same name, but exist in different schema owner.
Based on above circumstances, which is the type of possible object of the other source code?
a Package
b form
c View
d table
e synonym
My response was a (Package).
Concerning
Muzz
Hello
You answer is correct, all_source contains code for one of the following object types
FUNCTION
,JAVA SOURCE
,PACKAGE
,PACKAGE BODY
,PROCEDURE
,TRIGGER
,TYPE
,TYPE BODY
for more detail check the following link
http://docs.oracle.com/cloud/latest/db121/REFRN/refrn20249.htm#REFRN20249
Concerning
Salim
-
The time actually ran up to remaining 27hours before I force quit it (he was installing for at least an hour already) I tried this on iMac running different versions of Mac OS x including Maverick and Yosemite, and they have this problem. It comes to CC for the company. The package includes Bridge, Photoshop, Illustrator, InDesign, After Effects, and Muse. Here's the Setup log:
24 Nov 15:24:09 Henrys-iMac installer [384]: @(#) PROGRAM: PROJECT: install-690
24 Nov 15:24:09 Henrys-iMac installer [384]: @(#) PROGRAM: install PROJECT: Installer-538
24 Nov 15:24:09 Henrys-iMac installer [384]: material: iMac12, 2 to 2.70 GHz (x 4), 8192 MB RAM
24 Nov 15:24:09 Henrys-iMac installer [384]: running Build OS: Mac OS X 10.7.5 (11 G 63)
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: PATH = / usr/bin: / bin: / usr/sbin: / sbin
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: TMPDIR = / var/folders/_d/c6_827z92njfbx5jpb7hzsyh0000gn/T /.
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: SHELL = / bin/bash
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: HOME = / users/henryfrick
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: USER = henryfrick
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: LOGNAME = henryfrick
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: DISPLAY=/tmp/launch-AhtzCs/org.x:0
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: SSH_AUTH_SOCK = / tmp/launch-qGnbkA/Auditors
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: Apple_Ubiquity_Message = / tmp/launch-XxdyXy/Apple_Ubiquity_Message
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: Apple_PubSub_Socket_Render = / tmp/launch-dEGRJ6/rendering
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: COMMAND_MODE = unix2003
24 Nov 15:24:09 Henrys-iMac installer [384]: Env: __CF_USER_TEXT_ENCODING = 0x1F5:0:0
24 Nov 15:24:09 Henrys-iMac installer [384]: journal of Installation CCPLuciano
24 Nov 15:24:09 Henrys-iMac installer [384]: open from: /Users/henryfrick/Desktop/CCPLuciano/Build/CCPLuciano_Install.pkg
24 Nov 15:24:09 Henrys-iMac installer [384]: journal of Installation of Luciano
24 Nov 15:24:09 Henrys-iMac installer [384]: open from: /Volumes/GHOSTDRIVE2/Luciano/Build/Luciano_Install.pkg
24 Nov 15:24:09 Henrys-iMac installer [384]: fileURLForURL = x-disc://GHOSTDRIVE2/Luciano/Build/Luciano_Install.pkg
24 Nov 15:24:09 Henrys-iMac installer [384]: fileURLForURL = file://localhost/Volumes/GHOSTDRIVE2/Luciano/Build/Luciano_Install.pkg
24 Nov 15:24:14 Henrys-iMac installer [384]: plugin InstallerStatusNotifications loaded
24 Nov 15:24:21 Henrys-iMac runner [403]: the administrator authorization.
24 Nov 15:24:21 Henrys-iMac installer [384]: =.
24 Nov 15:24:21 Henrys-iMac installer [384]: selected user install Standard
24 Nov 15:24:21 Henrys-iMac installer [384]: choice selected for installation:
24 Nov 15:24:21 Henrys-iMac installer [384]: Update: "CCPLuciano".
24 Nov 15:24:21 Henrys-iMac installer [384]: CCPLuciano_Install.pkg: com.adobe.Enterprise.install.F71180A0-A393-42DF-9B13-156B44D066BA: 1.0.0.1.0
24 Nov 15:24:21 Henrys-iMac installer [384]: =.
24 Nov 15:24:21 Henrys-iMac installer [384]: it took 0.00 seconds to sum up the package selections.
24 Nov 15:24:21 Henrys-iMac installer [384]:-[IFPKGDerivedDocument sortedPackageLocations]: result =)
'file://localhost '.
)
[24 Nov 15:24:21 Henrys-iMac installer [384]:-[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
[24 Nov 15:24:21 Henrys-iMac installer [384]:-[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/henryfrick/Desktop/CCPLuciano/Build/CCPLuciano_Install.pkg
24 Nov 15:24:21 Henrys-iMac installer [384]: set the level of permissions to root for the session
24 Nov 15:24:21 Henrys-iMac installer [384]: use session PK
24 Nov 15:24:21 Henrys-iMac installer [384]: start the installation:
24 Nov 15:24:21 Henrys-iMac installer [384]: configuration of volume "Macintosh HD."
24 Nov 15:24:21 Henrys-iMac installer [384]: preparation of disc for the local installation of punt.
24 Nov 15:24:21 Henrys-iMac installer [384]: free space on "Macintosh HD": 729,28 GB (729277222912 bytes).
24 Nov 15:24:21 Henrys-iMac installer [384]: create the temporary directory "/ var/folders/_d/c6_827z92njfbx5jpb7hzsyh0000gn/T//Install.384aB0g1m".
24 Nov 15:24:21 Henrys-iMac [384] Installer: IFPKInstallElement (1 package)
24 Nov 15:24:21 Henrys-iMac installer [384]: using the root to IFPKInstallElement permission level
Nov 24 15:24:22 Henrys-iMac installed [406]: PackageKit:-----Begin installation -
Nov 24 15:24:22 Henrys-iMac installed [406]: PackageKit: application = < 1 packages, destination = PKInstallRequest / >
Nov 24 15:24:22 Henrys-iMac installed [406]: PackageKit: packages =)
"PKJaguarPackage < file://localhost/Users/henryfrick/Desktop/CCPLuciano/Build/CCPLuciano_Install.pkg >.
)
Nov 24 15:24:22 Henrys-iMac installed [406]: PackageKit: will be based on the obsolete reception for package identifier com.adobe.Enterprise.install.F71180A0-A393-42DF-9B13-156B44D066BA (path prefix =)
Nov 24 15:24:22 Henrys-iMac installed [406]: PackageKit: extraction file://localhost/Users/henryfrick/Desktop/CCPLuciano/Build/CCPLuciano_Install.pkg (destination = / var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/cleaning the start-up/PKInstallSandbox-tmp/Root, uid = 0)
Nov 24 15:24:22 Henrys-iMac installed [406]: PackageKit: executing script ".» "/ preupgrade" in /Users/henryfrick/Desktop/CCPLuciano/Build/CCPLuciano_Install.pkg/Contents/Resources
Nov 24 15:24:22 Henrys-iMac installed [406]:. / preupgrade: AAMEE Installer: preupgrade launched...
Nov 24 15:24:22 Henrys-iMac installed [406]:. / preupgrade: AAMEE Installer: working directory is /Users/henryfrick/Desktop/CCPLuciano/Build/CCPLuciano_Install.pkg/Contents/Resources
Nov 24 15:24:22 Henrys-iMac installed [406]:. / preupgrade: AAMEE Installer: launch of AdobeDeploymentManager...
Set the permissions for everyone in the folder where CCPackager was created to "Read/write" active. It's strange because there is only one administrator account on Mac (and that the account already has read-write), but it seems to fix the problem.
-
Code and the database tables in different schemas
Hello
My version of db: database Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
I would like to understand the advantages and disadvantages of the following situation:
We have only one request.
The design of the db for this application has 44 paintings, of which 28 are base tables related by PK and FK relations. The other 16 are look upward and refer to tables that are not related to one.
The team has decided to place the tables in a diagram 28 A and the other 16 in another schema B within the same database. (The reason for this is... because it's done in other projects to do it here too).
Coming now to the code (stored procedures, functions, packages, etc.). Teams want to ask most of the code in the diagram B with the Ref 16 tables. (the reason being again the same).
What are the advantages and disadvantages this?
Please advice.
PS:
I have googled and find something on these lines:cons: o harder to manage o harder to upgrade o harder to patch o harder to maintain o causes your shared pool size to increase 1,000 times (shared sql goes down the tubes) o takes more space o queries against the dictionary will be impacted o latching on the shared pool goes WAY up (latching = locks = serialization device = slows you down) pros: o none that I can think of.
From my experience, if you see natural divisions that give you smaller patterns, well contained, you should take advantage of them and start with separate schemas. If done correctly, it can greatly improve the maintainability of your application.
Assume that your initial project will have 60 paintings and they might fall into three groups of 15, 20 and 25 tables respectively. There are also objects of code such as PL/SQL packages. Your choice is:
-Use a single scheme of 60 paintings, suppose that with 100 objects in code.
-Use 3 diagrams divided as described. The total code objects will probably be a little more that unique schema design, because they need to provide interfaces with others. So let's assume that schemas will have 30, 40 and 50 code objects each.Now, wait 3 years.
The history of single-schema:
-The single-schema is passed to 120 tables. There has been a corresponding increase in code, now more than 200 objects. But they are very complex. Over time, each piece of code will interact with the tables more and more and many other objects in code.
-You (the architect or Manager) can not really apply any internal for this structure since no subsidy is required to add dependencies. Therefore, if you change a table there is a vast impact.
-You can easily divide the responsibilities because everything affects everything else. You can't manage simultaneous development efforts because the impact widespread changes cause the same tables/components to be affected by multiple projects. If you have the project execution dependencies / as you have interdependencies technique/code.
-You have a "big ball of mud" and it is very difficult to get out of this situation.Multi-schema history:
-Each of the 3 original patterns has grown, but some more than others. A fourth was added a year ago, when there was a major expansion in a new district, as a result of "natural divisions.
-On the inside of each of these schemas, it is always a challenge to impose internal structure. But those patterns more smaller and therefore more small problems.
-Through schemes, subsidies are necessary to allow interaction, this is not a "wild west" where everyone can access everything (and introduce dependencies on everything). Teams to define interfaces (packages or the views that are specifically intended to be interface points) where the interactions with other scehmas are necessary.
-If changes to a table are needed, the impact can be limited to the schema that contains naturally. You know that no one else has created dependencies at this table, because you were never issued grants on this.
-The responsibility for these schemas was divided between 2 teams, each team having full responsibility for its 2 diagrams.
-Teams can complete projects much more easily, even with a parallel development, because there is less than a "domino effect" with each change.Now, these benefits depend on "natural divisions that give you the diagrams smaller, well contained." If you make the wrong choice here, you will always have a mess. You design with the end in mind scenario.
-
Run the vCO as a different user
Hello
is it possible/plug to run the vCenter Orchestrator Service not supported as SYSTEM account, but as a different user (Administrator)?
If Yes, is this account that is also used for system calls in workflows (execute commands, for example)?
See you soon,.
Joerg
According to vCenter Orchestrator documentation, to run and use Orchestrator, you must use a local system account for the computer on which is installed Orchestrator.
See this link (page 19): http://www.vmware.com/pdf/vco_410_install_config_guide.pdf
Best wishes / Saludos
-
-
Hi when I try the following in a process before header
Start
liste_pkg_lista.liste_lista_func(:P2_X);
end;
I get:
1 error has occurred
* ORA-06550: line 3, column 1: PLS-00221: 'LISTE_LISTA_FUNC' is not a procedure or is undefined ORA-06550: line 3, column 1: PL/SQL: statement ignored
Can you help me with this?Coco wrote:
Start
liste_pkg_lista.liste_lista_func(:P2_X);
end;Post all the code wrapped in ------...------wrapped in \
...\
Tags to preserve formatting and stop interpreting HTML/CSS/JavaScript forum software.
According to the specification of the package so that we can see the declaration of liste_pkg_lista.liste_lista_func.
I get:
1 error has occurred
* ORA-06550: line 3, column 1: PLS-00221: 'LISTE_LISTA_FUNC' is not a procedure or is undefined ORA-06550: line 3, column 1: PL/SQL: statement ignored
If liste_pkg_lista.liste_lista_func is actually - as the name suggests, a +function+ then it should be used in the right-hand side of an assignment, or as an expression, not compellingly as above.
declare v varchar2(4000); begin v := liste_pkg_lista.liste_lista_func(:P2_X); end;
or
begin htp.p(liste_pkg_lista.liste_lista_func(:P2_X)); end;
It also seems that you need to rethink your naming scheme: liste_pkg_lista.liste_lista_func is heavy on the s and s list lists, which looks like a little redundant.
-
Compare the table structures in different schemas. help please
Hi all
I have a question...
I have pictures on different schemas something like
Diagram A
-------------
Table 1
Table 2
Table 3
Diagram B
------------
Table 1
Table 2
Table 3
Now situation is table 1 and table 2 will have a similar structure or table 1 in Figure B will have additional columns.
like so... on... for all other tables...
example!
Now I need to write some sort of procedure for the thing to compare these tables which are in different in the column names in the schema and get it had exported to an Excel sheet.Schema A: Desc Table 1; Name Type Null ------------- ------- ------- No Number Notnull Name Varchar2(10) Not null Fee Number (10,2) Not null Scheam B; Desc Table1; Name Type Null ------------- ------- ------- DX_No Number Notnull DX_Name Varchar2(10) Not null DX_Fee Number (10,2) Not null comments Varchar(2)
and here it's first three columns SHOULD BE CONSIDERED AS SAME even if the DX_ prefix are from the REST OF the PART OF THE COLUMN NAME IS SAME.
and the same way commit coloumn new schema B only... So it should be noted that excel sheets...
I don't know how the ADO or SQL Developer handle this... Is there any plsql block that I can write to do it...
Thanks in advance...Comparison of columns on all the tables in the two schema
select tc1.owner,tc1.TABLE_NAME,tc1.COLUMN_NAME, tc2.owner,tc2.TABLE_NAME,tc2.COLUMN_NAME from all_tab_columns tc1 full outer join all_tab_columns tc2 on &user1=tc2.owner and tc1.TABLE_NAME=tc2.TABLE_NAME and tc1.COLUMN_NAME like '%'||tc2.COLUMN_NAME where tc1.owner=&user2 and tc1.TABLE_NAME in ( select t1.table_name from all_tables t1 join all_tables t2 on t2.owner=&user2 and t1.table_name=t2.table_name where t1.owner=&user1)
Published by: xtender on 06.11.2010 12:43
-
How to run the packaged procedure with Ref Cursor
Hello.
The question may be very simple for you... but I was confused how to run
I have the following package
But I want to test (run) this procedure...CREATE OR REPLACE PACKAGE CURSPKG AS TYPE T_CURSOR IS REF CURSOR; PROCEDURE OPEN_ONE_CURSOR (N_EMPNO IN NUMBER, IO_CURSOR IN OUT T_CURSOR); END CURSPKG; / CREATE OR REPLACE PACKAGE BODY CURSPKG AS PROCEDURE OPEN_ONE_CURSOR (N_EMPNO IN NUMBER, IO_CURSOR IN OUT T_CURSOR) IS V_CURSOR T_CURSOR; BEGIN IF N_EMPNO <> 0 THEN OPEN V_CURSOR FOR SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME FROM EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO AND EMP.EMPNO = N_EMPNO; ELSE OPEN V_CURSOR FOR SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME FROM EMP, DEPT WHERE EMP.DEPTNO = DEPT.DEPTNO; END IF; IO_CURSOR := V_CURSOR; END OPEN_ONE_CURSOR; END CURSPKG; /
But confused how to have Ref Cursor
Could you help me in this...
Thank youYou must declare a variable of type T_CURSOR and pass it to the procedure like this.
declare lOutCursor CURSPKG.T_CURSOR; begin CURSPKG.OPEN_ONE_CURSOR(
, lOutCursor); end; -
Run the package in Guest remotely via PowerCLI
Hi all
I'm sure that I came across a script that can run a batch file in Windows remote clients using PowerCLI, but for the life of me I can't find it.
I have 4 Windows VMS, who have the same connection credentials, they have a test.bat file in the same place, I need a way to execute commands remotely via PowerCLI simultaneously, is - it possible?
It seems that the sqlio command is not found. May be that the directory is not in the Path variable in this OS.
Try again with the full path to the executable sqlio.
-
Run the package Functon question
Hello
I have a procedure PRC1 PCK1 package that include parameters for the table TAB1.
It comes when I call it in a FORM that will not work. (Under WHEN PRESSED to release BUTTON)
But thanks to the SQL Editor (SQL Navigtor), it works fine.begin PCK1 .PRC1 ('Hi', NULL, NULL, NULL, NULL, NULL); end;
Can there be any possible causes for this issue.execute PCK1 .PRC1 ('Hi', NULL, NULL, NULL, NULL, NULL);
rhgd
sexyask any error
you have a commit in the procedure? -
How to collect statistics on the table for tables in a different schema
Hi all
I have a table in a schema, and I want to collect statistics for the table in a different schema.
I gave GRANT ALL ON SCHEMA1. T1 TO SCHEMA2;
And when I tried to run the command to collect statistics to help
DBMS_STATS. GATHER_TABLE_STATS (OWNNAME = > 'SCHMEA1', TABNAME = > 'T1');
The function will fail.
Is there a way we can collect statistics of the table for tables in a schema into another schema.
Thank you
MK.You must grant analyze to schema2.
SY.
-
How to identify the time required to run a package
Hi all
Is the method without TKPROFF to find the time to run a package that calls a procedure.
for the examples
Lets say I run a packaage to SQLplus window
SQL > Execute my_pack.bal_proc;
(It took some time may be 4 hrs according to my watch).
At this point if I want to find the time by a sql command that after running the package, which was the time.
can someone help me find a query which tell what was the time required to run a package.
Thanks n rgds
SaazBefore execution:
SET TIMING ONThen run your procedure. For example:
SQL> SET TIMING ON SQL> Execute my_pack.bal_proc; PL/SQL procedure successfully completed. Elapsed: 00:00:00.00
Miguel
-
Running a package in SQL Developer
Hello
When I introduce a new package in a database and the package is given bz *.pkg file, what is the difference between the opening of the packing of files in SQL Developer (via 'Open '->' file') and then run the package and just copy paste the code Pl/SQL package in an editor.
I plead the cause I did the following experiment, which I've posted it here:
Faraz' Oracle DBA Blog: error opening a PL/SQL package as a file in Oracle SQL Developer
Run the file that has your ddl inside package and execution of the package itself - two different things.
When you open a file in SQL Developer, according to the file extension, you will get either a SQL worksheet or a PL/SQL Editor.
I'm assuming that your package file has made two database objects, the package specification and package body. If this is the scenario, you need to open it in a SQL worksheet, set your connection details, and then run with F5.
If your file contains only a spec or body in pkg, you can and should open in the procedure Editor. There, you will see your highlight syntax errors in the code itself.
I speak a little of that here, with some screenshots so I hope it's easier to understand.
Maybe you are looking for
-
Portege M600 - backlight switch location
The screen backlight is off and turns away. I can see the laptop when he ordered following a 2nd. I can very faintly see the desktop on the laptop screen - except that it's dark. I tried all the fixes software I can find in this forum, but nothing wo
-
Hello I have windows vista and for the last few weeks I can't get windows updates. I just get an error with this code 80070246 screen. It says 'never' most recent checks the updates and updates have been installed 'never '. I did the operation of Mic
-
Ethernet controller driver compaq 100-100ed
Hello I bought a compaq 100-100ed with windows desktop computer 8, for one of my friends. There excist on the use of windows 7, so I removed 8 completely. After I installed 7, there is no internet and hp says that there are no drivers for 7? Can some
-
Large Format HP Officejet 7500 a - cannot install driver and installation failed.
Error messages "Call to driverpackageInstall returned error 5"C:\program file\HP\HP officejet 7500 E910\Driver Store\pipeline\hpvp log.inf"package: a caller of driverpackageisntall must be a member of the Administrators group to install a driver pack
-
extraction of xmltype table in the xml output: redundant nodes
Hi guys - see example below. (edit: Sorry, did not use these forums for a while and can't seem to understand how to format the code...)[code] SQL > select *.the v version $2;BANNER---------------------------------------------------------------------