Custom code for Multi-org - Use x_all tables or views with set_client_info?
Trying to determine what is normal for custom sql and plsql within 11i. I am trying to find out what other 11i installations are using in regards to custom code. Are you using the all tables or using the views utilizing setclient_info. Any feedback would be appreciated.
Note: We have converted to multi-org and are setup as a single organization.
Thanks, Ira
Hi,
Using views or table are depend upon the requirement of clinets and implementation.
If one need to access multiple tables, its always good to have a view and access that... else its same to access view or table...
Thanks
Yogi
Similar Messages
-
Code For Delta Extraction Using Function Module
Dear Experts,
I want a sample code for Delta Extraction using Function Module ( If it is customized already working code very helpful ), I have already created Function Module but Full update is happening. If I give delta update again it is retrieving all records. It is very urgent, if you have please send me to the following mail ID.
[email protected]
Best Regards,
SGK.Dear KJ,
Thank for your response. I saw the code that you sent, you have used some ztables like ZSC_DELTA_IP, ZSC_SAFETY_DELTA, ZSC_SET_EXT_TIME
What are the fields that you have created in these tables , what is use of these tables, can you send the fields that you have used in these tables.
Thanks & Regards,
SGK -
Unable to debug/correct the CMOD code for a variable used in a query
unable to debug/correct the CMOD code for a variable used in a query
i am using the data in a DSO in a query and using a custom coding variable in that query , but this data not coming in that query ..
can anyone suggest how to debug that cmod code for the variable?
code is written in CMOD tocde for the variable.belowis the code that i have written for a custom coding for a variable
*******Start***
IF i_step = 2.
CASE i_vnam.
WHEN 'IC_COMPCD'.
TYPES: BEGIN OF gt_itab_DyAuthTable,
username TYPE /bic/afiop_o1200-/BIC/IC_USER,
companycode TYPE /bic/afiop_o1200-COMP_CODE,
END OF gt_itab_DyAuthTable,
BEGIN OF gt_itab_Cocd_all,
companycode TYPE /BI0/MCOMP_CODE-COMP_CODE,
END OF gt_itab_Cocd_all.
DATA: gi_itab_DyAuthTable TYPE STANDARD TABLE OF gt_itab_DyAuthTable,
wa_itab_DyAuthTable TYPE gt_itab_DyAuthTable.
DATA: gi_itab_Cocd_all TYPE STANDARD TABLE OF gt_itab_Cocd_all,
wa_itab_Cocd_all TYPE gt_itab_Cocd_all.
SELECT /BIC/IC_USER
COMP_CODE FROM /bic/afiop_o1200
INTO CORRESPONDING FIELDS OF TABLE gi_itab_DyAuthTable
WHERE /bic/ic_user = sy-uname.
LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
IF wa_itab_DyAuthTable-companycode EQ '*'
OR
wa_itab_DyAuthTable-companycode EQ ' '.
SELECT COMP_CODE FROM /BI0/MCOMP_CODE
INTO CORRESPONDING FIELDS OF TABLE gi_itab_Cocd_all.
LOOP AT gi_itab_Cocd_all INTO wa_itab_Cocd_all.
l_s_range-low = wa_itab_Cocd_all-companycode.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
to exit the loop if any one value is */space/all for a user's compcode values
EXIT.
ENDIF.
ENDLOOP.
if control is here means, the comp codes values didnt have */space
LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
l_s_range-low = wa_itab_DyAuthTable-companycode.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
Endcase.
Endif. -
MO: Operating Unit Non Usable Operating Unit for Multi-Org Conversion
Hello Hussein
I enabled multi org in 11i and mo Operating unit values set as Non Usable Operating Unit for Multi-Org Conversion, is ok to set is value or will that cause any responsibility.
In R12.1.3 I am getting an error like this
APP-FND-02902: Multi-Org profile option is required. Please set either MO: Security Profile or MO: Operating Unit profile option.
Please advice
Thanks
Princeuser12094010 wrote:
Hello Hussein
I enabled multi org in 11i and mo Operating unit values set as Non Usable Operating Unit for Multi-Org Conversion, is ok to set is value or will that cause any responsibility.This might cause issues.
ORA-20001: APP-FND-2902: Multi-Org Profile Option is Required [ID 399910.1]
How To Prevent the Profile Option MO: Operating Unit being set to NULL at Site Level? [ID 393560.1]
In R12.1.3 I am getting an error like this
APP-FND-02902: Multi-Org profile option is required. Please set either MO: Security Profile or MO: Operating Unit profile option.
Please adviceR12 - Error ORA-20001, APP-FND-02902 Accessing Profile Classes Form With Multi-Org Access Control (MOAC) Enabled [ID 602141.1]
Unable To Open Customer Account Details, Error :ORA-20001: APP-FND-02902: Multi-Org profile option is required [ID 987165.1]
Entering to Profile Classes Gets Ora-20001, App-Fnd-02902. Multi Org Profile Option Is Required [ID 465132.1]
Error 'ORA-20001: APP-FND-02902: Multi-Org Profile Option Is Required' When Open Account Details [ID 1406860.1]
Some Web Pages Fail To Load After Patch Application [ID 1281328.1]
You may also search MOS website for APP-FND-02902 and go through the docs.
Thanks,
Hussein -
Create one plan element for multi org in OIC R12
Hi There,
Can I create one plan element and use this plan element for 2 orgs, like US and CANADA?
In EBS R115, I have to create more than 100 plan elements in each org.
I want to know in R12 if i still need to do this. If I can create one set plan elements for multi orgs, will save a lot of time. The only difference of org US and CANADA is currency.
Thanks a lot !It is same in R12 also. You need to do the same as what you did in 11i. Not much changes on plan definition side.
-
Custom code for Flat file reconciliation on LDAP
Hello,
I have to write a custom code for flat file reconciliation on LDAP as the GTC connector wasn't working entirely.
Could someone help me out with this.. How do i do this ??
Thanksflat file reconciliation on LDAPWhat do you mean by Flat File on LDAP ?
If you want to create Flat File connector then search google for reading a flat file using Java.
Define RO Fields and do mapping in Process Defintion. You can use Xellerate User RO for Trusted Recon.
Make a map of CSV that and Recon Field
Call the Reconciliation API -
I have a scenario in a configure to order environment where I want to automatically creating flow schedules based on sales order demand. I have two orgs in same OU.
1. How to setup sales order line to generate flow schedules in the manufacturing org and then ship the finished goods from the shipping org. I believe this can be done from sourcing rules to populate Warehouse field in sales order line with the shipping org and create Flow schedule in another manufacturing org. Please advise ?
2. Once flow schedule is completed I want to prevent the reservation of Finished good on hand against Sales order so that the On hand could be transferred to shipping org and shipped. Please advise ?
Thanks for your inputs.
Best,
RajeshPl do not post duplicates - Preventing Item On Hand reservation in a configure to order environment for multi org same OU environment
-
Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please
williamjapa wrote:
Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please
Only the carrier to which the phone is locked can authorize an unlock. None of the Japanese carriers will do that. Sell the phone and buy one that works in Brazil. -
Hi,
How/where can I define the custom code for scrambling?
The SAP Scrambling guide does not give any details where I can define these, it only gives code examples
I did find transaction codes CNVMBTTWB and CNV_MBT_RULES but these are not working (kicking me out the transaction as soon as I try to create something). And these are TDMS 3.0 related.
Anyone an idea how to do this? Is there a guide for TDMS 4 somewhere? Didn't found it so far.
Kind regards,
JohnnyHi all,
I still got issues with the custom code for scrambling.
Has anyone a good document about this and please do not refer to the SAP ones since for me they are not helpful in this case.
I have created the custom program but when I test it via the scrambling rule, I receive a 'NULL' error (which is strange)
Also, if I execute my scrambling flow, it gets stuck in phase 'Preparations for data scrambling' with error FORM xxxxx does not exist.
The form was created in the Control system.
What am I missing here?
Cheers,
Johnny -
How to write code for font family using swing?
how to write code for font family using swing?
i tried this code.but i got only font styles.but i need font family.observ this code
import java.awt.*;
import java.awt.event.*;
public class fontSelect extends java.awt.Dialog implements AdjustmentListener, ItemListener, TextListener, ActionListener {
public Font selectedFont; //to get result
public boolean isSelected = false;
public Color selectedBackground, selectedForeground;
public fontSelect(Frame parent, boolean modal) {
super(parent, modal);
String fntName[] = getToolkit().getFontList();
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] names = ge.getAvailableFontFamilyNames();
//{{INIT_CONTROLS
setLayout(null);
setVisible(false);
//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(insets().left + insets().right + 380,insets().top + insets().bottom + 282);
setBackground(java.awt.Color.lightGray);
fontList = new java.awt.Choice();
//fontList = new java.awt.List(0,false);
add(fontList);
fontList.setBounds(insets().left +25,insets().top + 50,137,144);
//label1 = new java.awt.Label("Example:-");
//label1.setBounds(insets().left + 220,insets().top + 36,84,30);
//add(label1);
exampleText = new java.awt.TextField();
//exampleText.setText("sample string ");
//exampleText.setBounds(insets().left + 40,insets().top + 50,84,21);
//add(exampleText);
label2 = new java.awt.Label("Font Family:-");
label2.setBounds(insets().left + 25,insets().top + 30,70,19);
add(label2);
isBold = new java.awt.Checkbox("Bold");
isBold.setBounds(insets().left + 320,insets().top + 90,60,18);
isBold.setFont(new Font("Times New Roman", Font.BOLD, 12));
add(isBold);
isItalic = new java.awt.Checkbox("Italic");
isItalic.setBounds(insets().left + 250,insets().top + 90,48,17);
isItalic.setFont(new Font("Times New Roman", Font.ITALIC, 12));
add(isItalic);
showFont = new java.awt.Label("samplestring ",Label.CENTER);
showFont.setBounds(insets().left + 240,insets().top +50,120,30);
showFont.setBackground(java.awt.Color.white);
add(showFont);
label11 = new java.awt.Label("Size:-");
label11.setBounds(insets().left + 290,insets().top + 120,70,19);
add(label11);
fontSize = new java.awt.Choice();
add(fontSize);
//label11 = new java.awt.Label("Example string");
fontSize.setBounds(insets().left + 290,insets().top + 140,60,23);
fontSize.setBackground(java.awt.Color.white);
btnSelect = new java.awt.Button();
btnSelect.setLabel("Select");
btnSelect.setBounds(insets().left + 280,insets().top + 190,87,24);
add(btnSelect);
btnCancel = new java.awt.Button();
btnCancel.setLabel("Cancel");
btnCancel.setBounds(insets().left + 280,insets().top + 230,91,24);
add(btnCancel);
label3 = new java.awt.Label("Background:-");
label3.setBounds(insets().left + 24,insets().top + 90,94,18);
add(label3);
rBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
rBackground.setBounds(insets().left + 24,insets().top +110 ,197,21);
add(rBackground);
gBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
gBackground.setBounds(insets().left + 24,insets().top + 135,197,21);
add(gBackground);
bBackground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,255,0,0,255);
bBackground.setBounds(insets().left + 24,insets().top + 160,197,21);
add(bBackground);
label4 = new java.awt.Label("R");
label4.setBounds(insets().left + 12,insets().top + 110,12,18);
label4.setFont(new Font("Times New Roman", Font.BOLD, 12));
label4.setForeground(java.awt.Color.red);
add(label4);
label5 = new java.awt.Label("G");
label5.setBounds(insets().left + 12,insets().top + 135,12,18);
label5.setFont(new Font("Times New Roman", Font.BOLD, 12));
label5.setForeground(new Color(-16744448));
add(label5);
label6 = new java.awt.Label("B");
label6.setBounds(insets().left + 12,insets().top + 160,12,18);
label6.setFont(new Font("Times New Roman", Font.BOLD, 12));
label6.setForeground(java.awt.Color.blue);
add(label6);
rBackValue = new java.awt.Label("255");
rBackValue.setBounds(insets().left + 225,insets().top + 110,24,12);
rBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
rBackValue.setForeground(java.awt.Color.red);
add(rBackValue);
gBackValue = new java.awt.Label("255");
gBackValue.setBounds(insets().left + 225,insets().top + 135,24,12);
gBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
gBackValue.setForeground(new Color(-16744384));
add(gBackValue);
bBackValue = new java.awt.Label("255");
bBackValue.setBounds(insets().left + 225,insets().top + 160,24,12);
bBackValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
bBackValue.setForeground(java.awt.Color.blue);
add(bBackValue);
label7 = new java.awt.Label("Foreground:-");
label7.setBounds(insets().left + 20,insets().top + 185,94,18);
add(label7);
rForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
rForeground.setBounds(insets().left + 20,insets().top + 205,197,21);
add(rForeground);
gForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
gForeground.setBounds(insets().left + 20,insets().top + 230,197,21);
add(gForeground);
bForeground = new java.awt.Scrollbar(Scrollbar.HORIZONTAL,0,0,0,255);
bForeground.setBounds(insets().left + 20,insets().top + 255,197,21);
add(bForeground);
label8 = new java.awt.Label("R");
label8.setBounds(insets().left + 10,insets().top + 205,12,18);
label8.setFont(new Font("Times New Roman", Font.BOLD, 12));
label8.setForeground(java.awt.Color.red);
add(label8);
label9 = new java.awt.Label("G");
label9.setBounds(insets().left + 10,insets().top + 230,12,18);
label9.setFont(new Font("Times New Roman", Font.BOLD, 12));
label9.setForeground(new Color(-16744448));
add(label9);
label10 = new java.awt.Label("B");
label10.setBounds(insets().left + 10,insets().top + 255,12,18);
label10.setFont(new Font("Times New Roman", Font.BOLD, 12));
label10.setForeground(java.awt.Color.blue);
add(label10);
rForeValue = new java.awt.Label("255");
rForeValue.setBounds(insets().left + 220,insets().top + 205,24,12);
rForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
rForeValue.setForeground(java.awt.Color.red);
add(rForeValue);
gForeValue = new java.awt.Label("255");
gForeValue.setBounds(insets().left + 220,insets().top + 230,24,12);
gForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
gForeValue.setForeground(new Color(-16744384));
add(gForeValue);
bForeValue = new java.awt.Label("255");
bForeValue.setBounds(insets().left + 220,insets().top + 255,24,12);
bForeValue.setFont(new Font("Times New Roman", Font.BOLD, 12));
bForeValue.setForeground(java.awt.Color.blue);
add(bForeValue);
setTitle("Choosing font");
//{{REGISTER_LISTENERS
exampleText.addTextListener(this);
btnSelect.addActionListener(this);
btnCancel.addActionListener(this);
isBold.addItemListener(this);
fontList.addItemListener(this);
isItalic.addItemListener(this);
fontSize.addItemListener(this);
rBackground.addAdjustmentListener(this);
gBackground.addAdjustmentListener(this);
bBackground.addAdjustmentListener(this);
rForeground.addAdjustmentListener(this);
gForeground.addAdjustmentListener(this);
bForeground.addAdjustmentListener(this);
for (int i = 0; i < (int)fntName.length; i++)
fontList.addItem(fntName);
showFont.setFont(new Font(fntName[0], Font.PLAIN, 12));
// GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
//String[] names = ge.getAvailableFontFamilyNames();
for ( int i=0; i<names.length; i++ )
System.out.println( names[i] );
selectedBackground = showFont.getBackground();
selectedForeground = showFont.getForeground();
int i = 8;
do {
fontSize.addItem(""+i);
if (i<=30) i+=2;
else if (i<=70) i+=4;
else i+=8;
} while (i<150);
try {
fontSize.select(2);
} catch (IllegalArgumentException e) { }
//{{DECLARE_CONTROLS
//java.awt.List fontList;
java.awt.Label label11;
java.awt.Label label1;
java.awt.TextField exampleText;
java.awt.Label label2;
java.awt.Checkbox isBold;
java.awt.Checkbox isItalic;
java.awt.Label showFont;
java.awt.Choice fontSize;
java.awt.Choice fontList;
java.awt.Button btnSelect;
java.awt.Button btnCancel;
java.awt.Label label3;
java.awt.Scrollbar rBackground;
java.awt.Scrollbar gBackground;
java.awt.Scrollbar bBackground;
java.awt.Label label4;
java.awt.Label label5;
java.awt.Label label6;
java.awt.Label rBackValue;
java.awt.Label gBackValue;
java.awt.Label bBackValue;
java.awt.Label label7;
java.awt.Scrollbar rForeground;
java.awt.Scrollbar gForeground;
java.awt.Scrollbar bForeground;
java.awt.Label label8;
java.awt.Label label9;
java.awt.Label label10;
java.awt.Label rForeValue;
java.awt.Label gForeValue;
java.awt.Label bForeValue;
private Font constructFont() {
int l;
try {
l = Integer.parseInt(fontSize.getSelectedItem());
} catch (NumberFormatException e) {l = 12;}
selectedFont = new Font(fontList.getItem(fontList.getSelectedIndex()>=0?fontList.getSelectedIndex():0 ), (isBold.getState()?Font.BOLD:0)+(isItalic.getState()?Font.ITALIC:0), l);
selectedBackground = new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue());
selectedForeground = new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue());
return (selectedFont);
public void textValueChanged(java.awt.event.TextEvent event) {
Object object = event.getSource();
if (object == exampleText) showFont.setText(exampleText.getText());
public void actionPerformed(java.awt.event.ActionEvent event) {
Object object = event.getSource();
if (object == btnSelect) {
isSelected = true;
selectedFont = constructFont();
dispose();
} else if (object == btnCancel) {
selectedFont = null;
selectedBackground = null;
selectedForeground = null;
dispose();
public void itemStateChanged(java.awt.event.ItemEvent event) {
Object object = event.getSource();
if (object == isBold) showFont.setFont(constructFont());
else if (object == fontList) showFont.setFont(constructFont());
else if (object == isItalic) showFont.setFont(constructFont());
else if (object == fontSize) showFont.setFont(constructFont());
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent event)
Object object = event.getSource();
constructFont();
showFont.setBackground(new Color(rBackground.getValue(), gBackground.getValue(), bBackground.getValue()));
showFont.setForeground(new Color(rForeground.getValue(), gForeground.getValue(), bForeground.getValue()));
if (object == rBackground) rBackValue.setText(""+rBackground.getValue());
else if (object == gBackground) gBackValue.setText(""+gBackground.getValue());
else if (object == bBackground) bBackValue.setText(""+bBackground.getValue());
else if (object == rForeground) rForeValue.setText(""+rForeground.getValue());
else if (object == gForeground) gForeValue.setText(""+gForeground.getValue());
else if (object == bForeground) bForeValue.setText(""+bForeground.getValue());Okay, that's better. It would have been nice if the code was formatted, and if there was about 20% of that code. (Your example could have been just one JLabel and nothing else, for example.)
Anyway, now that you've posted that code, what is your question about it? I see you are calling a "getAvailableFontFamilyNames" method; do you have a question about that? If so, what is the question? -
Custom code for Target Source Reconciliation from a flat file
Hi Experts,
I need help in writing a custom code for Target Source Reconciliation from a flat file to OIM. The flat file will contain account details for different application instances. I am working on 11gr2.
Thanks,
SubinAll right, all right, not so quickly.
I am at the stage of trying to put one dimension
array. But I stuck in one place, this is the program:
import java.io.*;
public class FromFile {
public static void main(String[] args) throws IOException {
File inputFile = new File("mac.txt");
FileReader in = new FileReader(inputFile);
int c;
for(int i = 0; i < 10; i++) {
c = in.read();
System.out.println(c);
and I try to read: 1 2 3 4 from text file
This is the result so far...
49
32
50
32
51
32
52
-1
-1
-1
well,
I think I know what's wrong. I must change ASCII numbers into
ints. But I dont' know how to do it. Some nice book, or
tutorial on streams would come in handy. Could you correct
it?. -
I NEED MY UNBLOCKING CODE FOR MY IPHONE 4S ,I HAVE BEEN INCONTACT WITH MY SERVICE PROVIDER AND THEY CONFIRMED THEY HAVE SENT AN EMAIL TO YOURSELF TO GET THE CODE AND NOW I NEED TO CONTACT YOU MYSELF IS THIS CORRECT AS VODAFONE DO NOT SEEM TO BE HELPING ME
There is no such thing as an unlock code for an iPhone. It's done by restoring the phone using iTunes
-
I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.
Dear Anubha,
I hope these windows illustrate what I am facing.
The above window shows the prompt that the software requires activation.
The version is 8.1.0.
This next window is the point where I select activation by phone.
This final window shows that the "response code" is not returned. I get an
"Activation Number" instead.
Steven
On Tue, Jan 27, 2015 at 10:50 PM, Anubha Goel <[email protected]> -
FOR YEARS IVE USED THE FIREFOX ADDON GOOGLEPACK WITH PCTOOLS/SPYWARE DOCTOR. NOW I CANT SEE ANY SIGN OF IT ON THE ADDONS LIST AND EVERYONE SEEMS TO NOT EVEN HAVE EVER HEARD OF IT INCLUDING THE ZOMBIES AT PCTOOLS SUPPORT CHATLINE. AS IF THE LAST 3 YEARS OF MY LIFE WERE A DREAM. WHATS THE DEAL?
TO THIS:
on support.mozilla.com:
This could be what you are looking for -
http://www.pctools.com/spyware-doctor/google_pack/
Try Googling -'' google pack +pc tools +spyware doctor'' which is where you might reasonably have started.
Nothing to do with Mozilla, though.
'''the-edmeister''' has helped thousands of people here and on other forums. He deserves considerable respect and offers good advice on your behaviour.
SINCE I CAN LOGIN TO MY ACCOUNT I OPED ANOTHER. JJBOY AND BOBPC = SAME.
ALREADY EXPLAINED THESE SITES DO NOT HAVE IT YOUR LINKS ARE BOGUS. THAT MEANS THEY HAVE NO CURRENT VALUE. IT USED TO BE CORRECT BUT ISNT ANYMORE. THE LINKS ARE OUT-DATED. THERE IS NO LINK TO DOWNLOAD THE GOOGLE PACK FOR FIREFOX WITH FREE PC TOOLS ANYWHERE . THERE IS NO SEARCH ENGINE THAT DOESNT LEAD ON THE SAME JOURNEY TO THE END WHICH IS THAT THERES NO DOWNLOAD. END OF THAT STORY. IF THERE IS A REAL TRUEFULL PLACE WHERE A PERSON CAN DOWNLOAD AND OLDER VERSION THAT APEARS TO BE THE ONLY THING LEFT TO DO. -
Help with circumvention of ORA-01472: cannot use connect by on view with ..
Hi,
Any help resolving the following would be v. helpful.
The Aim
Produce a hierarchical report of all users and the privileges they have via the various roles they are granted.
The SQL
select lpad(' ', level*2,' ')|| granted_role from (select grantee, granted_role
from dba_role_privs
union
select role, granted_role
from role_role_privs
union
select role, privilege
from role_sys_privs
union
select 'All users', username
from dba_users)
start with grantee='All users'
connect by prior granted_role = grantee;
The error
ORA-0147: cannot use connect by on view with DISTINCT, GROUP BY, etc.
The database
Oracle 8.1.7.4 (Yes I know ....)
The Solution
[Thanks in advance]What if you create a table first
create table role_grants as
select granted_role, grantee
from (select grantee, granted_role
from dba_role_privs
union
select role, granted_role
from role_role_privs
union
select role, privilege
from role_sys_privs
union
select 'All users', username
from dba_users)
Then run the hierarchical report
select lpad(' ', level*2,' ')|| granted_role
from role_grants
start with grantee='All users'
connect by prior granted_role = grantee
Maybe you are looking for
-
Where can I get an OS-X 10.4 full install (black) DVD?
I've recently been given an old G4 17" iMac with 10.2.8 on it. I would like to upgrade this but only to 10.4 since I need a machine which runs "Classic". Our original Mini cam with 10.4 but I cannot find the install DVD Looking at eBay they seem to b
-
Connect with RC file authentication
hello, Attempting to connect HSQL db by calling a config file from a java command line. However, receiving the following error message: Failed to retrieve connection info for database 'personal': Please set up authentication file 'C:\Documents and Se
-
just updated the lion os x, and now when I try to use my optus dongle, it comes up with the message saying that it won't work because Java Runtime needs to be installed. Help?
-
Batch number assignment after receiving the goods
iam receiving material from my customer say 100 units, i am giving the challan that i have received 100 units from u, and the challan number will be 1000 After that i have to do job work, in the received 100 units, 50 i have to issue to production fo
-
How increase number of concurent schedule running task?
Hi Does anyone know, how increase number of concurrent running schedule task? I was created ten instances of report (as user administrator). They were run every hour on the same time, but only 5 instances have status running on the same time. When on