Problum in select
Hi Friends
i have written this statements
but not getting results
SELECT * FROM table
WHERE name = &name OR name is NULL AND dept = &dept;
Regards
Vikas Singhal
Example:
SQL> ed
Wrote file afiedt.buf
1 select * from emp
2 where ename = nvl('&ename',ename)
3* and deptno = nvl(to_number('&deptno'), deptno)
SQL> /
Enter value for ename: ALLEN
old 2: where ename = nvl('&ename',ename)
new 2: where ename = nvl('ALLEN',ename)
Enter value for deptno:
old 3: and deptno = nvl(to_number('&deptno'), deptno)
new 3: and deptno = nvl(to_number(''), deptno)
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
SQL> /
Enter value for ename:
old 2: where ename = nvl('&ename',ename)
new 2: where ename = nvl('',ename)
Enter value for deptno: 30
old 3: and deptno = nvl(to_number('&deptno'), deptno)
new 3: and deptno = nvl(to_number('30'), deptno)
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7900 JAMES CLERK 7698 03-DEC-81 950 30
6 rows selected.
SQL>
Similar Messages
-
Error invalid relational operator
Hi all
SELECT count(VC_FIRST_LEAVE) from atten_det
where to_char(dt_atten,'MM')='05'
and to_char(dt_atten,'rrrr')='2011'
and VC_FIRST_LEAVE='W'
AND to_char((dt_atten),'fmDay') "Day" ='SUNDAY'PROBLUM SOLVED
SELECT count(VC_FIRST_LEAVE) from atten_det
where to_char(dt_atten,'MM')='05'
and to_char(dt_atten,'rrrr')='2011'
and VC_FIRST_LEAVE='W'
AND to_char((dt_atten),'FMDAY') NOT IN ('SUNDAY','SATURDAY')
Please help
Thanks And Regards
vikas
Edited by: vikas singhal on Dec 3, 2011 10:27 AMvikas singhal wrote:
Hi all
SELECT count(VC_FIRST_LEAVE) from atten_det
where to_char(dt_atten,'MM')='05'
and to_char(dt_atten,'rrrr')='2011'
and VC_FIRST_LEAVE='W'
AND to_char((dt_atten),'fmDay') "Day" ='SUNDAY'Please help
Thanks And Regards
vikasSELECT count(VC_FIRST_LEAVE) from atten_det
where to_char(dt_atten,'MM')='05'
and to_char(dt_atten,'rrrr')='2011'
and VC_FIRST_LEAVE='W'
AND to_char(dt_atten,'fmDay') ='SUNDAY'; -
hi
every body
i create a tree item in my form 6i
now i want to get tree node vale when i click or select select node
when i try with this statement
"node_value := Ftree.Get_Tree_Node_Property('b1.tree1',:SYSTEM.TRIGGER_NODE,Ftree.NODE_VALUE);"
error message appears
"FRM-47307 can not get the property of the rote node"
please tell me how can i get the value
one thing more that i want, only leafes can have values attached how can i accomplish this
thanks and regardshy! i had the same problem and i found out that it is a problem with the :SYSTEM.TRIGGER_NODE
i solved it this way:
declare
htree item;
node_value number;
akt_node ftree.node;
begin
htree := find_item('TREEBLOCK.TREENAME');
akt_node := ftree.get_tree_selection(htree, 1);
node_value := ftree.get_tree_node_property (htree, akt_node, ftree.node_value);
--do smth. with the value
end; -
Logic needed in selection screen
hi experts,
in a selection screen i have one field S_budat ( it contains the range ) the user enters the date in it .the problum is we need to check the following condition .
if sy-datum> s_budat+13 months if it is ok we need get the values from the archive db else r/3 data .but in the mean while we have to check residency limit ( for ex: the data is archived till 22-03-2007. but in the selection screen the user entered the range 20-2-2006 to 24-5-2007 this falls in the both .so for this how to write the logic .till 22-03-2007 we have to take the data from the archive DB after thatwe have to take online data )
points will be reworded.You can check whether the Achive date lies between the range.
If it does, then create 2 records in the select-option table
1) from s_budat-low to arcive date
2) from archive date to s_budat-high.
Now you can do 2 selects 1 on archived tables , other on R/3 data using these 2 date ranges.
For the 2nd select , you can use the "appending" addition in the select statement -
Payment terms - selected customer
Hi Experts,
Payment Terms
Is it possible to define payment term for a selected customer(s) for a selected product,if possible, how to assign.
Vijay
Edited by: Vijay on Dec 22, 2007 4:36 PM
Edited by: Vijay on Dec 22, 2007 4:37 PMHi vijay,
1.first you create the payment term as required by u,
2. Maintain the customer master devision( product) wise and assign required payment term.
3. If you are not maintain the customer master devision wise assign the payment term at the time of sales order creation.
but one problem was there for payment terms, even if u maintain the customer master division wise with different payment terms, if u create the sales order with defferent materials, payment term will be picked the first line item related material.
solution for the above is create separate sales order for each product if u maintain the division wise customer master with different payment terms are assigned to the each division.
i think this may solve your problum, if u have any query let me know.
assign points if its useful.
regards
sai krishna -
Hi all i ahve problum in calling report in forms9i and report 9i when button pressed
the code of when-button-pressed is
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(1000);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT46');
-- Message('repid:', NO_ACKNOWLEDGE);
set_report_object_property(repid,report_other,'P_DATE_TWO='||:GIN.second_date
||' P_DATE_ONE='||:GIN.first_date||' P_DEPARTMENT='||:GIN.department||' P_FABRICATOR_NAME='||:GIN.fabricator);
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://zensol-0d8148f7:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
PAUSE;
END;
and sql query for the report is this there are four user parameters and all are initialized in when button preesd code
SELECT s.code,s.name,gin.prod_name,gin.color,gin.sale_order_id,gin.issue_date,gin.item_type,
sum(gin.total_issue),sum(grn.total_receive) FROM
(select g.item_type,g.supplier_code,g.supplier_name,gd1.prod_id,gd1.prod_name,
gd1.color,
gd1.sale_order_id,g.issue_date,
(gd1.xs
+ gd1.s
+ gd1.m
+ gd1.l
+ gd1.xl
+ gd1.pcs) AS total_issue from gin g,gin_detail1 gd1
where g.id=gd1.id and upper(g.item_type) like '%'||:p_department||'%'
)gin,
(select g.item_type,g.supplier_code,gd1.prod_id,gd1.prod_name,
gd1.color,
gd1.sale_order_id,
(gd1.xs
+ gd1.s
+ gd1.m
+ gd1.l
+ gd1.xl
+ gd1.pcs) AS total_receive from grn g,grn_detail1 gd1
where g.id=gd1.id and upper(g.item_type) like '%'||:p_department||'%'
)grn,supplier s
where gin.supplier_code = s.code
AND grn.supplier_code = s.code
AND gin.sale_order_id = grn.sale_order_id
AND gin.prod_id = grn.prod_id(+)
AND s.name like '%'||:p_fabricator_name||'%'
AND gin.issue_date between :p_date_one and :p_date_two
GROUP BY s.code,s.name,gin.prod_name,gin.color,gin.sale_order_id,gin.issue_date,gin.item_type
Please help
Thnaks And Regards
Vikas Singhalhi
i pass this code and get error 500 internal server error
WEB.SHOW_DOCUMENT('http://zensol-0d8148f7:8888/reports/rwservlet/getjobid'||
'server=repserver90','_blank');
500 Internal Server Error
java.lang.NumberFormatException: server=repserver90
at java.lang.Integer.parseInt(Integer.java:414)
at java.lang.Integer.parseInt(Integer.java:463)
at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:661)
at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1063)
at oracle.reports.rwclient.RWClient.doGet(RWClient.java:225)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64) -
Hi i want to create a view based on three table i am getting problum please guide me
SQL> ed
Wrote file afiedt.buf
1 CREATE VIEW order_tracker1 AS
2 SELECT
3 s.id,
4 s.party_name,
5 s.comment1,
6 s.del_date,
7 s.order_date,
8 sum(sd.total_qty),
9 sd.discount_price,
10 c.vip_cutomer,
11 c.agent_name,
12 c.shipped_from,
13 c.payment_terms
14 FROM sale_order s, sale_order_detail sd,customer_master c
15 WHERE s.id=sd.id and
16 s.cust_id=c.cust_id
17 group by s.id,
18 s.party_name,
19 s.comment1,
20 s.del_date,
21* s.order_date
SQL> /
sd.discount_price,
ERROR at line 9:
ORA-00979: not a GROUP BY expression
Thanks and Regards
vikas
Edited by: vikas singhal on May 26, 2009 11:27 PMYour script to create view should be like this
SQL> CREATE VIEW order_tracker1 AS
2 SELECT
3 s.id,
4 s.party_name,
5 s.comment1,
6 s.del_date,
7 s.order_date,
8 sum(sd.total_qty),
9 sd.discount_price,
10 c.vip_cutomer,
11 c.agent_name,
12 c.shipped_from,
13 c.payment_terms
14 FROM sale_order s, sale_order_detail sd,customer_master c
15 WHERE s.id=sd.id and
16 s.cust_id=c.cust_id
17 group by s.id,
18 s.party_name,
19 s.comment1,
20 s.del_date,
21 s.order_date,
22 sd.discount_price,
23 c.vip_cutomer,
24 c.agent_name,
25 c.shipped_from,
26 c.payment_terms
27 ORDER by s.id,
28 s.party_name,
29 s.comment1,
30 s.del_date,
31 s.order_date,
32 sd.price_total
33 ;
Try this.
Arvind -
Date format problum in EP 5.0 for a particular user
Hi All,
I am faceing a problum regarding the date format. The problum is that for one particuler user the date format is wrong i.e. (DDMMYYYY) but for all other user it is correct i.e. (MM-DD-YYYY). One thing more all the user belongs to US.
The unusual thing is that in R/3 system the default date format for all the user is (MMDDYYYY).
The portal version is 5.0.
Can any body help me out in this regrad.
Thanks & RegardsHas the user selected en_US as their browser Locale?
Steve -
Service Sheet - Fi/co Problum
Hi Gurus
While doing the services, in purchase Req (me51n) the mov i select the K-COST CENTRE AND D-SERVICE i will get the service details in the i given activity number and i try to post the p.req im getting the cost-center menu.
Here i want to create g/l a/c or cost element (ex.147000). for creating g/c a/c iam using code fs00. when iam try to create the g/l a/c 147000 getting the error " GROUP ACCOUNT NO" there is a select box down that optin. but, what i have to enter there. pls any body (mm/fico) help me this problum.
my doubt is when i am creating the g/l account in group account no what i have to enter.
Regards
Laxman KamulugariIf practiccing I suggest you selecting one P/L accout group. For production system you need go to ask help from FI/CO consultant.
FYI.
Account groups represent reporting for the financial balances of general government long-term assets and liabilities for an entity. Memorandum-type entries are necessary to offset these balances, since these financial transactions have been or will be reported separately and differently within applicable funds.
The General Fixed Assets account group is used to account for all general government fixed assets, with offsetting entries made to an "Investment in General Fixed Assets" account.
The General Long-Term Debt Account Group is used to account for all general government long-term liabilities, with offsetting entries made to "Amount Available" and "Amount to be Provided" accounts.
Edited by: Bruce Hu on Dec 23, 2007 4:54 AM -
Problum in generating partners profile
Hi all,
I am getting same problum again....
I am trying to generate the partners profile but error is
No message has been defined for the selection conditions in the model.
But i have already defined message type MATMAS in modelview.
Pls let me know what would be problum?
Thanks,
shashikanth.Hi,
This message comes from report RBDCUS15 , text element TEXT-018 and is set at following line -
IF gt_step_partner[] IS INITIAL
AND gt_step_port[] IS INITIAL
AND gt_step_rfc[] IS INITIAL
AND gt_step_out[] IS INITIAL
AND gt_step_nast[] IS INITIAL
AND gt_step_in[] IS INITIAL.
CLEAR gt_step.
REFRESH gt_step.
PERFORM fill_step USING gt_step-step
text-017 space space space space.
distribution model
PERFORM message_fill TABLES gt_step USING <i><b>text-018</b></i>
space space space space c_color_ok 'BD64'.
no messages in the model
PERFORM list_output TABLES gt_step.
ENDIF.
Please put a break point here and see the contents of the internal table - gt_step_partner[] . If this is space then for sure your distribution model dies not have a message whivh comes or goes from current client logical system . To see the logical system of the clinet in which you are trying to generate partner profile goto transaction SCC4. Double click your client number .Here you will see the Logical system . If the model does not have this logical system as one of sender or receiver you will get this error message .
If you still get the error message - give the details of your dustribution model , Message type / Sender / Receiver . Logical system of the client in SCC4 ???
Cheers -
Hi all
I have a master-detail form i just added one field in master block as database item and two field in detail block as database item.
After That My few execution were effected they were not work properly
i have a new button on master block and the code is
clear_form(no_commit);
SET_ITEM_PROPERTY('sale_order.id',ENABLED,PROPERTY_FALSE);
SELECT sale_order_id_seq.NEXTVAL INTO :sale_order.id FROM DUAL;
go_item('sale_order.sale_order_no');when i press this button it gives me error
when-validate-trigger-failed
And One More problum when i go to detail-block the intial value of the fields were not shown
before adding these coloumns every thing is working as per requiremnet but i dont know why it will not work now
please Guide
thanks And Regards
Vikas SinghalWHEN-VALIDATE-ITEM
BEGIN
SELECT
customer_master.vat_persentage,
customer_master.agent_name,
customer_master.currency,
customer_master.shipped_from,
customer_master.VIP_CUTOMER,
customer_master.discount_type,
customer_master.contact_no,
customer_master.vat_no,
customer_master.PAYMENT_TERMS,
customer_master.contact_person INTO
:sale_order.vat_persentage,
:sale_order.agent_name,
:sale_order.curr,
:sale_order.ship,
:sale_order.vip,
:sale_order.discount,
:sale_order.contact_no,
:sale_order.vat_no,
:sale_order.payment_term,
:sale_order.contact_person
FROM customer_master
WHERE cust_id=:sale_order.cust_id;
END;
BEGIN
SELECT customer_detail.delivery_address||chr(10)||
customer_detail.city||' - '||customer_detail.PIN_CODE||CHR(10)||customer_detail.COUNTRY||chr(10)||
customer_detail.mobile_no||' , '||customer_detail.OFF_CONTACT_NO||chr(10)||
customer_detail.EMAIL_ID
INTO :sale_order.delivery_address
FROM customer_detail
WHERE cust_id = :sale_order.cust_id and customer_detail.address_type='DELIVERY ADDRESS';
Exception
when NO_DATA_FOUND then
NULL;
when TOO_MANY_ROWS then
message('More Than Two Address');
message('More Than Two Address');
RAISE FORM_TRIGGER_FAILURE;
null;
END;
BEGIN
SELECT customer_detail.contact_name||chr(10)||customer_detail.delivery_address||chr(10)||
customer_detail.city||' - '||customer_detail.PIN_CODE||CHR(10)||customer_detail.COUNTRY||chr(10)||
customer_detail.mobile_no||' , '||customer_detail.OFF_CONTACT_NO||chr(10)||
customer_detail.EMAIL_ID
INTO :sale_order.showroom_address
FROM customer_detail
WHERE cust_id = :sale_order.cust_id and customer_detail.address_type='SHOWROOM ADDRESS';
Exception
when NO_DATA_FOUND then
null;
when TOO_MANY_ROWS then null;
END;
BEGIN
SELECT customer_detail.contact_name||chr(10)||customer_detail.delivery_address||chr(10)||
customer_detail.city||' - '||customer_detail.PIN_CODE||CHR(10)||customer_detail.COUNTRY||chr(10)||
customer_detail.mobile_no||' , '||customer_detail.OFF_CONTACT_NO||chr(10)||
customer_detail.EMAIL_ID
INTO :sale_order.INVOICE_ADDRESS
FROM customer_detail
WHERE cust_id = :sale_order.cust_id and customer_detail.address_type='INVOICE ADDRESS';
Exception
when NO_DATA_FOUND then
null;
when TOO_MANY_ROWS then null;
END;
BEGIN
IF :sale_order.delivery_address IS NULL
THEN
SELECT customer_detail.contact_name||chr(10)||customer_detail.delivery_address||chr(10)||
customer_detail.city||' - '||customer_detail.PIN_CODE||CHR(10)||customer_detail.COUNTRY||chr(10)||
customer_detail.mobile_no||' , '||customer_detail.OFF_CONTACT_NO||chr(10)||
customer_detail.EMAIL_ID
INTO :sale_order.delivery_address
FROM customer_detail
WHERE cust_id = :sale_order.cust_id and customer_detail.address_type='INVOICE ADDRESS';
END IF;
Exception
when NO_DATA_FOUND then
null;
END;
GO_ITEM('sale_order.PROFORMA_TYPE');
Thanks And Regards
vikas Singhal -
Error message: "playlists selected for updating no longer exist"
I tried to update my ipod nano and I guess I had deleted a playlist, but since then, I have not been able to update. Every time I try, I get the following message:
"Cannot be updated because all of the playlists selected for updating no longer exist."
I haven't been able to highlight which playlists are selected to begin with.
I read through the manual and thought that maybe rebooting the whole system might work. So I deleted Itunes from my computer and re-installed.
Then I tried re-setting my ipod. So now I have nothing on my ipod.
I also deleted everything from my library, thinking it might help to start from scratch. Nothing has worked.
How do I "select" and "unselect" playlists so I can get up and running again?Here you go.
http://discussions.apple.com/thread.jspa?messageID=607312򔑐 -
Error while calling a select esb service
javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback:
I encounter the above error while executing a synchronous bpel process, that invokes an esb db select service to fetch a value from the db.
the details available for the error are:
An unhandled exception has been thrown in the ESB system. The exception reported is: "java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 at java.util.Vector.get(Vector.java:710) at oracle.tip.esb.server.common.wsif.WSIFInvoker.readResponseHeader(Unknown Source) at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(Unknown Source) at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(Unknown Source) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(Unknown Source) at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(Unknown Source) at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source) at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source) at oracle.tip.esb.wsif.WSIFOperation_ESB.executeRequestResponseOperation(Unknown Source) at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:431) at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:353) at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:192) at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:733) at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:368) at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:197) at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3266) at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1696) at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184) at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:269) at com.collaxa.cube.engine.CubeE
Please suggest
thanx
AJDone That,
Thanx a ton Dave, it worked.
So I am finally moving on :-)
Just one question Dave, I happened to work on the Beta release of this version too, the problem was not there. How come we have been able to get it in dev preview. -
Logical operators in Oracle select query
Hello all,
Can i use logical operators in oracle select queries?
for 1 and 0 =0 ; 1 or 0 =0
if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.
Is there any way to use select col1 or col2 from table? where or is a logical operator?
Regards,Hi,
NB wrote:
Hello all,
Can i use logical operators in oracle select queries?Sure; Oracle has the logical operators AND, NOT and OR. All the comparison operators, including >, >=, = !=, EXISTS, IN, IS NULL, LIKE and REGEXP_LIKE are really logical operators, since they return logical values. You can use them in SELECT statements, and other places, too.
for 1 and 0 =0 ; 1 or 0 =0
if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.It's unclear what you want. Maybe you'd be interested in the BITAND function:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions014.htm#sthref1080
BITAND is the only logical function that I know of. Many other functions, especially numberical fucntions such as MOD, have applications in logic.
Is there any way to use select col1 or col2 from table? where or is a logical operator?Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements), and also post the results you want from that data.
Explain how you get those results from that data.
Always say which version of Oracle you're using. -
Can not select from data dictionary view from a procedure
Hi,
I wonder, which privilege is missing here:
my schema has this roles and privs:
GRANT CONNECT, RESOURCE TO cb ;
GRANT CREATE SESSION TO cb ;
GRANT SELECT_CATALOG_ROLE TO cb ;
GRANT CREATE SYNONYM TO CB;
GRANT CREATE VIEW TO CB;
I create a procedure:
create or replace procedure dd_test as
begin
dbms_output.enable(2000000);
for r in (select table_name from sys.dba_tab_partitions where owner = 'CB') loop
dbms_output.put_line(r.table_name);
end loop;
end;
sho err
4/38 PL/SQL: ORA-00942: table or view does not exist
When I run the core statement form sql prompt, it works !
so what privilege is missing here ???
thanks for any hint, Lao DeHi,
thanks for that reply, after doing that I can not select this DD-view from sql-prompt anymore (which I don't wonder ;-). Can you tell me, what idea you had behind that test ?
I found another instance, where the procedure works and I will compare those privileges, but it's hard to sort out that complex structure of nested roles and sys_privs.
How ever, I will update here, when I found the missing privilege.
regards LaoDe
Maybe you are looking for
-
How do you display multiple year reminders in Reminder Fox ?
Appointments in Jan 2013 are not displayed unless you go to that year. I want to see Dec. 2012 & Jan 2013 in one panel.
-
OS_X upgrade makes applications crash
I obeyed an Apple alert and installed 5 software upgrades yesterday. All seemed harmless. Now, however, I can't launch Microsoft Excel; I also had trouble using Firefox, until I reinstalled it. I use Excel for my work. What can I do to make it work a
-
Can I use Premiere Pro(and even Ae & Ps) project files made in Windows in Adobe on a Mac? And visa versa? Thank you for this important help. Me and a friend a collabrating on projects and he owns a Mac while I own Windows based. We are hopinfg we
-
I have 27 *.itl files. Some of these date back to 2005. How do I rationalize these into one itl file and move on?
-
Sale of used copies of Photoshop
I have upgraded my software to Photoshop 11 and Light room 4, leaving me with copies of PS/ELements 9, 10 with the books. Is it legal to sale the used copies and if it is can the buyer use the same activation codes?