Required privilege to view the source code for the stored procedure
RDBMS Version: 11.2.0.4
Platform: Oracle Linux 6.4
In our Production database, we have an application schema named CRM_PROD. And we have a read-only user named steve in this PB.
Steve must be able to view the source code of all stored procedures, functions and packages in the CRM_PROD schema. But steve shouldn't be able to run these procedures, functions and packages in the CRM_PROD schema. What a privilege should give Steve for this?
SYS is owner of the dictionary of data and tables for the source code. See configuration of privilege and role authorization - 11 g Release 2 (11.2).
Select it no matter what dictionary grant will give user (read) access to the full data dictionary.
Tags: Database
Similar Questions
-
Where can I see the source code for the controller
Hi all
My question is maybe stupid to some gurus of the ADF, but many people have found that R12 Pages have a lot of code and there is not too much documentation on how to customize a controller.
1. I see the *.class of my controller in the $JAVA_TOP/oracle/apps/ar/cusstd/createcus/webui/ArCreCusCO.class on my server, BUT I don't see that any of the encrypted code when I open up JDeveloper. So I guess I'm doing it wrong.
2. I want to change ArCreCusCO.class. I see a lot of people say Hey I've customized XYZ controller, but how they found the code and continue to change it is the least of my headaches
3. do I need to configure something in JDeveloper so I can see Server classes to my JDeveloper - what they do, if so, how you do?
4. I saw something in the help page saying adding components to the Extension of the OA the devil what?
Thanks to illuminate some beginners in the ADF.
With the new philosophy of Java, some of those 12 developers experience that we are not starting from zero because of this new architecture.
Hector. -.
p.s. any entry will be taken, but do not refer to the Oracle tutorial, is an example of cake I need some practical examples ;-)Hi hbono99
(1.) you can .class c above java, which is the compiled code as source code is not provided by oracle, if you need this file '.class' to see the source code for decompile, JAD decompiler 1.5.8 version will be newer .well, it would be useful to see the source code, but sometimes decompiled class create problems when trying to compile again.
2.), you can make changes in the ArCreCusCO.class after that decompilation and compile the same thing again to generate the class file, bcz you can put only class file on the server, BUT that would be fatal to change the standard class and the concept here to come of the Extension in the image, you need to extend this class. «XYZ custom "means the extesión of the class parent and make the extension u don't need not the source.»
3.) u cannot see the source code of a .class in Jdeveloper, there is no such a parameter.
(4.) to extend the need to ArCreCusCO.class you to create a workspace followed by creating a project in the workspace Jdeveloper
process to extend the classa.) create workspace and project
(b) create the same package in which resides the ArCreCusCO.class under the \jdev\myprojects\ in your Jdeveloper
(c.) right click on the project, go to create the new class, here you will find the option to metion the package where you want to put the superior (normal package starts with a xx.oracle.-) the possibility of mentioning the nmae classs that you want to extend
(d.) click ok at the end, you will get your extended classe.) source code usually has two methods ProcessFormRequest and processRequest, you can add the code according to the requirement.
extension works bcz inside the method she calls super, so all first it runs all the methods of the parent class in your case ArCreCusCO.class and then control comes in extended class, now, your code will be run, which will be accomliseh your condition
f.) tranaser the class file file expanded to the server, add this extended class with seeded page you need to customize the page, you will find the option to add your class, mention u your class with package to compete (the way that we import the file with their package names in our source code, here import is not necessary)
thanx
Pratap
-
Can we get the source code for the camera?
Can we get the source code for the camera? Including libraries? CM is great, except that the camera is not well polished, and the quality of the stock ROM Sony are much better.
probably more likely questions and restrictions of copyright
inspect the developers space
-
Where is the source code for the samples of 8 JavaFX?
Hello
I just downloaded the samples for JavaFX 8 and the popup menu in the upper left really caught my attention.
I want to study the source code for it. Anyone know where I can find it?
I expected it here http://hg.openjdk.java.net/openjfx/8/master/rt/file but it seems it isn't here.
Alternative: Jasper Potts presented a kiosk application to Devoxx 2012 (Antwerp), which was also used at JavaOne. I think that this application uses the same Menu. And he says that sources are available. But I do not remember the link.https://jdk8.Java.NET/Download.html
-
where can I get the source code for the shell of the user interface
Hi all
I use Jdeveloper 11.1.2.3.0 shell and UI.
I want to show a custom message to the user when it tries to close a tab that contains unsaved data.
I found this thread {message identifier: = 10782288}
I tried to extract the contents of the oracle-page-templates file - ext.jar, but I find only the .class files not .java files.
So, where can I get the source code for the shell of the user interface, or someone has a better solution?Hello
Try this link http://www.oracle.com/technetwork/developer-tools/adf/uishellsrc-1612278.zip
Frank
-
Flex 2 Source Code for the controls
Source code for the Flex controls is available?
Thank you!It comes with the SDK. I have it in my FDS installation under \fds2\flex_sdk_2\frameworks\source\mx\controls
-
Source code for Halo Custom Edition
Halo Custom Edition has been placed on the PC more than 10 years ago and since then, the communities have worked with it to create amazing content for years, however, we hit a roadblock. We are limited by the power of the engine, something that we cannot solve without the source code. Halo CE is no longer supported by Microsoft, and since then it was largely up to the modders to work around him. is given his age, possible that the source code for Halo Custom Edition may be made public?
You can try to contact Microsoft, but I guess it's unlikely.
-
Is it possible to get access to the source code for the library API Java BlackBerry? I'm working with the protection of a set of cryptographic keys using the cleaner memory. I currently use the LDAPPasswordCache to store my keys, because it is the only class in the library that implements the MemoryCleanerListener. I want to develop my own key storage class, but I'd love to see how LDAPPasswordCache is implemented so that I can use as a template for my own class.
short answer: no
long anser: do not hesitate to apply to rim for her
-
How can I find the URL codes for images stored in the Windows Photo Gallery?
How can I find the URL codes for images stored in the Windows Photo Gallery?
If you want the path to the current record
right click to the picture location of a photo...
and choose... Properties / General tab.
Location displays the path.If you have a photo saved on your hard drive
car that was downloaded on the net...
the original URL will appear not in
the file. -
Materialized view, based on the stored procedure
Hi all
is it possible to create a materialized view on the results returned by a stored procedure?
If this is not the case, do you think that any other way except for filling a table with data from the stored procedure and then founded the MV on it?
Thanks in advance.
MichaelTsilikidis wrote:
Sorry I don't speak properly. In fact the procedure does not return a value, it fills one of its parameters (of the ref cursor type) of data. That's what I wanted.
No it's not.
REF CURSOR don't store data, so it's not possible.
A Ref cursor is just a pointer to a query... and you can't "select from" a ref cursor, you can retrieve only one open.
PL/SQL 101: Understand the Ref Cursor
As correctly stated above, you can't question from a procedure to a function, and a materialized view is based on a query, you cannot use a procedure in a materialized view.
You could use a function pipeline instead of a procedure, or have the pipeline function obtain the results of the procedure and pipelines, and then the materialized view could be based on the results of this function in the pipeline.
example of function pipeline:
SQL > CREATE or REPLACE TYPE AS OBJECT num_descript (num number, descript varchar2 (30))
2.Type of creation.
SQL >
SQL > CREATE or REPLACE TYPE tbl_num_descript AS TABLE OF THE num_descript
2.Type of creation.
SQL >
SQL >
SQL > CREATE or REPLACE PACKAGE AS-reftest
2 FUNCTION pipedata (number p_choice) tbl_num_descript RETURN PIPELINED;
3 END;
4.Package created.
SQL >
SQL > CREATE or REPLACE PACKAGE BODY AS-reftest
2 FUNCTION pipedata (number p_choice) tbl_num_descript RETURN PIPELINED IS
3 v_obj num_descript: = num_descript (NULL, NULL);
4 v_rc sys_refcursor;
5 BEGIN
6. IF p_choice = 1 THEN
7 v_rc OPEN to SELECT empno as num, ename like descript FROM emp;
8 ELSIF p_choice = 2 THEN
9 OPEN v_rc to SELECT deptno as num, dname as descript OF THE Department;
10 END IF;
11 LOOP
12 FETCH v_rc INTO v_obj.num, v_obj.descript;
EXIT 13 WHEN v_rc % NOTFOUND;
14 PIPE ROW (v_obj);
15 END LOOP;
16 v_rc NARROW;
RETURN 17;
18 END;
END 19;
20.Package body created.
SQL > select * from table (reftest.pipedata (1));
DESCRIPT NUM
---------- ------------------------------
7369 SMITH
7499 ALLEN
7521 WARD
7566 JONES
7654 MARTIN
7698 BLAKE
7782 CLARK
7788 SCOTT
KING 7839
7844 TURNER
7876 ADAMS
JAMES 7900
7902 FORD
7934 MILLER14 selected lines.
SQL > select * from table (reftest.pipedata (2));
DESCRIPT NUM
---------- ------------------------------
10 ACCOUNTING
SEARCH 20
30 SALES
40 OPERATIONS -
How to show the stored procedure code
Hello
How can I get the code for creating a stored procedure using sqlplus instead of sql-developer? I want to get all of the code of the stored procedure. I saw it in writing
SQL > desc proced_1
I get the Argument Name, Type and input/output by default of the stored procedure, but if I want to get the code 'create procedure', how can I do?
Thank you!Hai
Try this
Select * from user_source where name = 'Procedure_name '.
online ordering;Concerning
Srikkanth.M
-
Passing an array as a parameter of java (java controls) for the stored procedure
Hello
I use java controls (BEA Weblogic Workshop 8.1) to call a stored procedure and send an array as a parameter to the stored procedure of java. The following code throws an exception 'Fail to convert the internal representation.
Java code
import com.bea.control.DatabaseControl.SQLParameter;
Here I create the java
int [] = {12,13,14} javaArray.
The code below is used to create the table from sql to oracle for the procedure
SQLParameter [] params = new SQLParameter [1];
Object obj0 = javaArray;
params [0] = new SQLParameter (obj0, oracle.jdbc.OracleTypes.ARRAY, SQLParameter.IN);
the code below calls the myFunc in file OJDBCtrl.jcx
String success = dbControl.testFunc (params);
OJDBCtrl.jcx
/**
* @jc: = sql statement ' call CMNT_TST_PROC (?)).
*/
String Myfunc (SQLParameter [] param);
The stored procedure that is used:
SL_tab IS NUMBER TABLE INDEX BY PLS_INTEGER;
Procedure cmnt_tst_proc (cmnt_tst sl_tab);
Procedure cmnt_tst_proc (cmnt_tst sl_tab) is
BEGIN
dbms_output.put_line ('Hello');
END;
I'm getting the following exception
Failure = Java.Sql.SqlException: Internal failure to convert the representation: [I@438af4 [ServiceException] >]
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.check_error(DatabaseError.java:861)
at oracle.sql.ARRAY.toARRAY(ARRAY.java:210)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7768)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7449)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7837)
at oracle.jdbc.driver.OracleCallableStatement.setObject(OracleCallableStatement.java:4587)
at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:244)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl._setParameter(DatabaseControlImpl.jcs:1886)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getStatement_v2(DatabaseControlImpl.jcs:1732)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.invoke(DatabaseControlImpl.jcs:2591)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:433)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:406)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:249)
at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(JcsContainer.java:85)
at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:224)
at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:109)
at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(StatelessContainer_ly05hg_ELOImpl.java:153)
...
Can you please let me know, what am I doing wrong and how can I pass an array to a procedure/function using java controls.
Any help will be much appreciated.
Published by: user12671762 on February 24, 2010 05:03
Published by: user9211663 on February 24, 2010 21:04Try using an oracle.sql.ARRAY with a nested table or varray instead of a table index. Create the type SQL and Java object as follows
SQL> create type sl_tab as varray(3) of integer; Java: ArrayDescriptor ad = ArrayDescriptor.createDescriptor ("
.SL_TAB", java.sql.Connection); Object elements = new Object[3]; elements[0] = new Integer(12); elements[1] = new Integer(13); elements[2] = new Integer(14); oracle.sql.ARRAY array = new oracle.sql.ARRAY(ad, oracle.jdbc.OracleTypes.ARRAY, elements); SQLParameter[] params = new SQLParameter[1]; params[0] = new SQLParameter(array, oracle.jdbc.OracleTypes.ARRAY, SQLParameter.IN); String succ = dbControl.testFunc(params); I don't think that you can pass an array of Java, this is why you have more success using an oracle.sql.ARRAY with a SQL varray. -Michael-
-
Hello
How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.
Thank you
Jay.
Hi if your task is running an informatica mapping you can set your DAC task to run the full mapping for incremental and full loads, so tab task just point to the mapping.
Hope that helps.
Thank you
-
Use the stored procedure to create the data model for the bi publisher report
Hi all
Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.
Thank you
ViratCheck out these links
BI publisher to use the stored procedure
Re: Stored procedures and dynamic columns
Re: Is it possible to use stored procedures in BI Publisher GUI?
Re: PL/SQL stored w / model XML?If brand pls help
-
How to view the run log in the stored procedure?
Hello
I'm working on a project of migrating from Sybase to Oracle (10g).
On Sybase, when I run a stored procedure, it will connect to the console as:
100 rows inserted
200 rows affected
...
One line per request in the stored procedure.
Oracle, I only: 'Procedure completed successfully' (Yes, I'm french :-)
Is there a way to get the logs for each request in my stored procedure?
-An option?
-One command after each request?
Thanks in advance.user9321154 wrote:
OK, it's great.Otherwise, there is not an option on Oracle to achieve this same result automatically.
No, if you want to do this, you must do it yourself. PL/SQL is a real language, not a script like T - SQL language. Therefore, it is the procedure that one is successful or not, not every instruction.
You should also be aware that if you use % ROWCOUNT SQL to get the number of rows processed and DBMS_OUTPUT. Put_line to show them on the screen, that the output will not appear before once you have completed the process, not as each DBMS_OUTPUT statement is processed.
If you want to t shelves where in the procedure, you will need to insert the release of record in a table by using an autonomous transaction or something like UTL_FILE use to write the instructions in an o/s file.
John
Maybe you are looking for
-
Print and preview work fine in Internet Explorer. Printer works fine for other functions, as well.
-
Cannot circumvent the warning on this certificate
At work I'm sailing through a proxy, which uses its own certificate on all https sites. The result of this is that whenever I want to access an https site, I received a certificate warning (sec_error_untrusted_issuer). Normally, I can just ignore the
-
HP Officejet Pro 8500 has periodically resets
On every 20 minutes the screen on my HP Officejet Pro 8500 a is empty, then displays, followed by the transport travel sounds like the printer is reset for a print job. I'm set up on a WiFi connection and I have no screen removal of frame together.
-
I have lost the CD for my Deskjet 1050, how can I download this printer for use on computer again y?
-
Origianl title: windows live does not open My Windows Live Mail has recently stopped working, by double-clicking on the desktop icon top of page does not open the program, appears it the "Windows Live Mail" logo and then a message saying:-"Windows Li