Verification of input in the package by access parameters
Hi gurus,Recently I activated the audit_trail parameter in the init.ora file so I can check the database. I want to audit a package entry settings. Could this be possible? ...
Kind regards!
Pablo. -.
Published by: PabloArroyo on 7 November 2012 18:09
Yes, it is saved in sql_text.dba_audit_trail. See the demo:
C:\Windows\system32>sqlplus scott/tiger
SQL*Plus: Release 11.2.0.1.0 Production on Thu Nov 8 10:20:42 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter audit_trail;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_trail string DB_EXTENDED
SQL> set line 200;
SQL> create or replace procedure sp(num in number)
2 is
3 begin
4 dbms_output.put_line(num);
5 end;
6 /
Procedure created.
SQL> create or replace package p is
2 procedure sp(num in number);
3 end;
4 /
Package created.
SQL> create or replace package body p is
2 procedure sp(num in number)
3 is
4 begin
5 dbms_output.put_line('Executing Package:');
6 end;
7 end;
8 /
Package body created.
SQL> audit execute on sp by access;
Audit succeeded.
SQL> audit execute on p by access;
Audit succeeded.
SQL> exec sp(12);
12
PL/SQL procedure successfully completed.
SQL> exec p.sp(15);
Executing Package:
PL/SQL procedure successfully completed.
SQL> alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
Session altered.
SQL> column timestamp format a20
SQL> column owner format a10
SQL> column obj_name format a10
SQL> column action_name format a20
SQL> column sql_text format a20
SQL> select timestamp, owner, obj_name, action_name,sql_text from dba_audit_trail
2 where obj_name='P'
3 and owner='SCOTT';
TIMESTAMP OWNER OBJ_NAME ACTION_NAME SQL_TEXT
-------------------- ---------- ---------- -------------------- --------------------
08-NOV-2012 10:43:19 SCOTT P EXECUTE PROCEDURE BEGIN p.sp(15); END;
SQL> select timestamp, owner, obj_name, action_name,sql_text from dba_audit_trail
2 where obj_name='SP'
3 and owner='SCOTT';
TIMESTAMP OWNER OBJ_NAME ACTION_NAME SQL_TEXT
-------------------- ---------- ---------- -------------------- --------------------
08-NOV-2012 10:43:00 SCOTT SP EXECUTE PROCEDURE BEGIN sp(12); END;
SQL>
So, we can get value of the sql_text column of dba_audit_trail package procedure input parameter.
Concerning
Girish Sharma
Tags: Database
Similar Questions
-
Problem with the passage of several parameters to a function
Dear Experts,
I have a strange problem while trying to pass parameters to a function in Csharp:
On my database, I have a function like
Mary of function (varchar2 parameter1, parameter 2 varchar2) return {number}
........
}
I want to write a csharp function that can perform these functions with different numbers and types of settings and always returns a number (see below).
My problem is, I always pass that one parameter, the second parameter is not reach the database function, although I can see
all parameters within the structure of the OracleCommand (dbcommand) object in the debugger.
Can you give me a tip why my function does not work?
Best regards
Desperately Daniel
It is my function:
public override int insertDataSetwithReturn (String ProcCall, parameters of the ArrayList, ArrayList ParameterTypes, ArrayList ParameterNames)
{
int ReturnValue = 0;
try {}
Verification of conformity of the Arraylength
If (!) (Parameters.Count) == ParameterTypes.Count)) {}
wrong input! TODO!
}
MyDBConnection DBConnection = new DBConnectionORA();
DBPOOL.getConnection (of the myDBConnection);
OracleConnection myOracleConnection;
myDBConnection.getConnectionout (of the myOracleConnection);
DbCommand OracleCommand = new OracleCommand (ProcCall, myOracleConnection);
dbCommand.CommandType = CommandType.StoredProcedure;
Die nun aus der Parameterliste Columns setting.
for (int ParameterCounter = 0; ParameterCounter < Parameters.Count; ParameterCounter++)
{
OracleParameter myParameter = new OracleParameter();
myParameter.ParameterName = (String) ParameterNames [ParameterCounter];
myParameter.OracleDbType = convertdotNetVariableTypesToDBVariableTypes ((String) [ParameterCounter] ParameterTypes);
myParameter.Direction = ParameterDirection.Input;
myParameter.Value = parameters [ParameterCounter];
dbCommand.Parameters.Add (myParameter);
}
ReturnParameter OracleParameter = new OracleParameter();
returnParameter.ParameterName = "ref_ret";
returnParameter.OracleDbType = OracleDbType.Int16;
returnParameter.Direction = ParameterDirection.ReturnValue;
dbCommand.Parameters.Add (returnParameter);
dbCommand.ExecuteNonQuery ();
}
catch (System.Exception e)
{
String MessageStr;
MessageStr = "Error insertDataSet (DBConnection_ORA insertDataSet)." +
Output +.
e.get_Message () + "." +
Output;
MessageBox.Show (MessageStr, "Error in getArrayListfromProcedureNIP",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
} //catch
return ReturnValue;
}
Published by: danielwetzler on December 15, 2010 16:23Hello
Can you give exactly the error generated by the application?
You can try to overthrow the invocation of the parameters. This means that, try to invoke the returnValue parameter first and then the others (in settings) in the same order as you stated them in your stored procedure.
in PLSQL, you have,
Create or replace function (parm1 parm2 parm3 OUT varchar2, varchar2 IN IN varchar2)In your application, you must first write:
blah blah blah parm3.direction = parm3.returnvalueand then
blah blah blah parm1.direction = parm1.input
blah blah blah parm2.direction = parm2.inputHope this helps you
Walid -
I have a new win 7 and have a lot of trouble installing an HP laserjet printer.
When you try to remove the drivers under properties of the print server, I get the following message:
"Cannot remove the HP LaserJet 1020 driver. The specified printer driver is currently in use.
Impossible to remove the hplj1020.inf package. Access is denied. »someone knows what's the problem? the prnter is not yet connected. Must not be in use. The problem I had was that the stuff sent to the printer seems to sit and take 15 ins to print a test page.
How can I remove the drivers?
Stop the print spooler service, and then start the print spooler service. Now, delete the print driver and packaging. Alan Morris Windows printing team seek here Microsoft Knowledge Base: http://support.microsoft.com/search/Default.aspx?adv=1
-
I've recently updated for windows vista and 7. I had the same problem with the two operating systems. Whenever I try to install some programs, I get a message that says...
"This installation package could not be opened. "Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package.I tried to manually update the windows installer, but I can't seem to find a way to fix this one. Currently im running windows 7 64 bit if that helps.
Thank you
' StryffeFor anyone who has problems with this. First ive tried not your guy fixing it was confusing and a lil difficult to follow. I have windows vista 64-bit. and Ive tried all kinds of solutions. Ive found that that some of you will like and other custom. OK, here it is:
You must create a new user! You can download almost anything and it will be displayed on your previous user name! its as simple as that!Here's a video showing you how if you do not know: http://www.youtube.com/watch?v=s09COXeVRGo -
I can't download itunes on my computer its gives me an error saying "this installation package cannot be opened. "Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package" can anyone help
Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7
http://support.Apple.com/kb/HT1923Uninstall software, remove programs and solve uninstalling problems
http://www.revouninstaller.com/Remove and reinstall iTunes, QuickTime, and other software components for Windows XP
http://support.Apple.com/kb/ht1925Hello questions, see if that helps: http://www.raymond.cc/blog/archives/2008/02/10/how-to-uninstall-or-remove-bonjour-mdnsresponderexe/
Problem installing iTunes or QuickTime for Windows
http://support.Apple.com/kb/HT1926Turn on Windows 7 'Compatibility Mode' to iTunes:
http://www.PCWorld.com/article/188534/turn_off_windows_7_compatibility_mode_for_itunes.htmlWindows reports that iTunesSetup.exe is not a valid Win32 program
http://support.Apple.com/kb/TS1406First of all check if you have a version of 32 or 64-bit Windows:
1) click the Start button, right-click computer and then click Properties.
(2) in the system, see the system type - it will say either 32 or 64 bits.
(3) download the appropriate version using the links.ITunes download (32-bit):
http://www.Apple.com/iTunes/download/Download 64 - bit:
http://support.Apple.com/kb/DL1037Make sure that the "Windows Installer" service is running, or force start to begin.
(1) open run, and type services.msc, and then press ENTER. You can also go
Control Panel/Admin Tools/Services.(2) locate the Windows Installer in the list of installed services.
(3) check that the status is "started".
If the condition column is empty, right-click Windows Installer, and then select start.(4) If you get the error trying to force start the Windows Installer service,
and then change the Startup Type to automatic (the default value is 'Manual').
and then restart the computer.(5) very Installation Service runs after you restart the system.
Also:
Forum of Apple's Itunes: you can find a solution (if none of the above is of no help) to your problem when you post on their forum.http://discussions.Apple.com/category.jspa?categoryID=150
J W Stuart: http://www.pagestart.com
-
Header of the package failed verification during the download of the package sfr
Hello
I am trying to download the package asasfr -5500 x-boot - 5.3.1 - 152.pkg. But every time, it comes with an error "package header failed verification - object of type 'NoneType' has no len() Please check that the package is not damaged. Abandoned update. "I tried with ftp and http. But every case the same thing happens. My question is whether this is the right package. The doc of Cisco, I read asasfr-sys - 5.3.1 - 44.pkg. But this version I have not found the site of download of cisco software.
QW-SFR-boot > system install http://www.XXXXX.com/asasfr-sys-531-152.pkg
CheckPackage header verification - object of type 'NoneType' no has no no len()
Please check that the package is not damaged.
Abandoned update.Thanks in advance.
Sari
Are you following the Quick Start Guide?
As he ordered, first copy us the boot image module of firepower to the ASA, set it as the recovery for the module image, retrieve the module using this boot image and complete the installation complete by using the image of the system (step 7 in the Quick Start Guide). Until the first 6 steps are completed successfully, #7 will not work.
Please show us the output of the show version and present the ASA cli module.
-
Windows 7 error message when install Java or Itunes 'this facility not could be opened. "Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer package.
I have a new machine and some programs I download it stops me in my tracks. It only allows me to install updates of Java or I Tunes?HelpRather than run the program from its current location, make sure that first save you it to your hard drive and then run Setup from there.
-
Hello
We have a user with access to the DBA_SOURCE database and DBA_OBJECTS.
I am able to select both DBA_OBJECTS and DBA_SOURCE.
But when I try to look for any package or the procedure I am not able to see the packages and procedures in the Connections window.
With the help of TOAD, the database user is able to view packages and procedures.
Is there a workaround for SQL Developer? If this is not the case, a request for improvement can be saved?
Kind regards
-Debo
If we determine that you have access to the DBA_ data dictionary views, here's what we run to load the node procs
Select * from)
SELECT OBJECT_NAME, OBJECT_ID,
Cast (last_ddl_time as timestamp) LAST_MODIFIED,.
DECODE THE INVALID (STATUS, 'INVALID', 'TRUE', 'FALSE').
'TRUE' executable,
Has_body 'FALSE. '
PLSQL_DEBUG, o.created
OF SYS. Dba_OBJECTS o, Dba_plsql_object_settings s
WHERE o.OWNER =: SCHEMA
AND s.OWNER (+) =: SCHEMA
AND s.name (+) = o.OBJECT_NAME
AND s.TYPE (+) =: TYPE
AND OBJECT_TYPE =: TYPE
AND SUBOBJECT_NAME IS NULL
AND OBJECT_ID NOT IN (SELECT PURGE_OBJECT FROM RECYCLEBIN)
)
-
My iPhone 6 s + has been stolen. I got the code to access and iCloud, and I putted in find my iPhone. Here illegally, could unlock iPhone and log in icloud. I only had reference no.. MKV82LL/A, Series n F2 * RWV on the packaging. I wonder how do I get it back?
< personal information under the direction of the host >
Hello Miss116,
I am so sorry your iPhone was stolen, it's a terrible feeling, and I'm here to help you with everything I can.
1. go to a computer and go to iCloud.com and sign in with your Apple ID and password.
2. go find iPhone and all devices at the top, click on your iPhone.
3. click on lost Mode and put in a phone number where you can be reached.
4. click Next, then enter a message that says something along the lines, "Please find my iPhone, please call this number to return."
5. click on done
Best wishes to get your iPhone back safely.
-
Hp3830: Msg said to remove the packaging
Msg says remove packaging, power off the printer and turn it back on. I did it several times and Dan see no tape or cardboard. Ink cartridges must be placed on the far right.
Hello
Thank you for using the HP forum.
Have you tried to check if there is no packing material inside the printer area print area?
Open the dorr of the printer as you would to access ink cartridges and check if there are elements of the package.
Thank you.
-
This installation package could not be opened. Verify that the package exists
I get the message that this facility could not be opened verify that the package exists and that you can access.
or contact the application vendor to verify that this is a valid windows installer package.
When I downloaded it and even my norton security has validated as safe and the package in files mydownlod id is it just does not work because of the above messageIt occurs when the downloaded file is incomplete or corrupt. The antivirus scan results is not related to this. Try redownloading the file and verify.
-
I want to find the string "EMP1" procedures have this chain of the package
Hi team,
I have a package, the package, it has 70 technical acts, I want to find the string "EMP1" what procedures to have this channel under this package.
If I use dba_source its name from package edition only. not to say about wise procedures in this package.
can you please help here to find procedure under the package names because I analysis for all of the schema.Thanks in advance.
Thanks and greetings
VincentHello
You can use the pl/sql program to do this by giving the name of the package as an input. It won't like your exact expectations. But of course, it will help you.
DECLARE
CURSOR c1 IS
SELECT *.
From all_source b
WHERE upper (b.text) like '% EMP1% '.
AND b.name = & nom_package
ONLINE ORDERING;
CURSOR c2 (ln_line NUMBER) IS
SELECT *.
From all_source one
WHERE b.SID = & nom_package
AND (UPPER (a.TEXT) LIKE '% FUNCTION %') OR UPPER (a.TEXT) LIKE '% PROCEDURE % '.
AND a.line<=>=>
ORDER BY desc line;
lv_source all_source % rowtype;
BEGIN
I'm in c1 LOOP
--
OPEN c2 (i.line);
Get INTO lv_source c2;
dbms_output.put_line (' procedure ' | lv_source.) Line: ' text: ' | lv_source. (Text);
CLOSE C2;
--
END LOOP;
END;
/
Concerning
Patrick Reddy.K
-
table does not exist (when I try to compile the package)
Hi all
I can choose from table1 using simple script.
But when I try to compile the package with select from it table1 I get the message:
PL/SQL: ORA-00942: table or view does not exist
Please help me understand how this is possible.
What additional information should I place them here for you to help me?
Thanks in advance.
UPD: The object name is SYS. V_$ PROCESS
I choose him by using script, so I need all grants.
But what is the problem when I try to do in the package?
2788367 wrote:
Hi all
I can choose from table1 using simple script.
But when I try to compile the package with select from it table1 I get the message:
PL/SQL: ORA-00942: table or view does not exist
Please help me understand how this is possible.
What additional information should I place them here for you to help me?
Thanks in advance.
It is very likely that you've got access to the table via a role. This allows you to use SQL to access.
With packages, the grant must be directly to your schema, bypassing a role.
-
Hello, I would like to know what the price of the taxes included in the package of Lightroom + photoshop
Oregon does not have to pay sales tax... I have no idea about your location without a NAME
This is an open forum, not Adobe support... below to connect with Adobe personnel to help
While the forums are open 24/7 you can't contact Adobe support at any time
Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
-
??? I'm unable to download apps from creative cloud to my MacBook Pro. I downloaded the package install twice. I can double click on the installer and it seems to be loading but it just guard spinning for 10-15 minutes, then gives me an error and a blue button to get help. We have other MacBook Pro in the studio and just downloaded quickly. Any ideas?
Hello
Run Adobe Cleaner tool - https://helpx.adobe.com/creative-cloud/kb/cc-cleaner-tool-installation-problems.html
Download creative cloud of Download Adobe Creative Cloud apps | Adobe Creative Cloud free trial
If this does not help then follow the steps mentioned below.
- Access \User\
\Library\Application Support\Adobe *
And/Library/Application Support / Adobe *.
To access the hidden user library folder, see library user access hidden files. Mac OS 10.7 and later.
- Find and delete the files AAMUpdater and OOBE
- / Library/Application Support/Adobe (rename Adobe Application Manager and Adobe of joint office)
- Go > utilities > (rename Adobe Application Manager and creative cloud)
- Download Creative cloud-apps Download Adobe Creative Cloud | Adobe Creative Cloud free trial
Let us know if this will help.
- Access \User\
Maybe you are looking for
-
Re: Can you create discs recorvery to new windows 7
Hi allcan you create a recorvery disk that ships with toshiba tools and those added software when you buy a new proffessional of windows 7? _sceaniro_I have a toshiba laptop with vista home premium and I just bought windows 7 Professional of the stor
-
T420 &; Windows 8 questions.
Greetings to the community. I would write some of the issues I'm facing after installing windows 8 on my T420. I bought the laptop in August with windows 7... then somewhere around early November, I upgraded to Windows 8. I met other threads that dir
-
Lenovo IdeaPad y510p Nvidia and Intel HD Graphics
Hello I recently bought a Lenovy Y510P with an Intel HD 4600 and a Nvidia GTX 755 M. Updated the driver Nvidia 332.21 and chosen as my card of video Standard for all applications. But when I try to start 4 Battlefield I get an error message saying th
-
Convert an array of strings 1 d
Hello I am creating headers in a write to a text file. Attached, it's my code and the file looks like when opened in Excel. I have my data in three columns, but the headers are not where I need them. LabVIEW does not seem to allow a conversion of an
-
invokeLater or new thread?
The problem, I need to finish 3! Days. SOS! (...__...) notesDecoder is a decoder to analyze each note of a byteArray, is Runnable.then do 2 thingsask the tone and the animation of the corresponding key plays. When I use UiApplication.getUiApplication