Apex load data privilege issue

Hi All
I use apex to load a csv file into oracle11gr2
However, the table is created under the apex user's schema user and the apex user cannot see the table.
This is not the same behavior as in apex.oracle.com or they use a trigger to create synonym and grant synonym for that table?
Is there a standard package I can run to fix this?
-Thanks so much for the help
help still need I mark the message as answer by mistake!
Edited by: xwo0owx on Mar 29, 2011 3:19 PM

Yes We can create a synony for a trigger like this
Create or replace trigger test before insert on emp
begin
dbms_output.put_line('Hi');
end;
Create the trigger in scott schema
and connect to apps schema and create a synonym like this
create public synonym test for scott.test;
or
create synonym test1 for scott.test;
And also view this example
I have created a trriger on CREATE,in which i m giving execute immediate command for creating a synonym and using
dbms_job.submit .
it is not giving any error but its not creating any synonym on the table...
code:
create or replace trigger bdesai.DR_CRA
after CREATE OR DROP on bdesai.schema
declare
l_str varchar2(255);
l_str1 varchar2(255);
l_job number;
begin
CASE ORA_SYSEVENT
WHEN 'CREATE' THEN
if (ora_dict_obj_type = 'TABLE') then
l_str := 'execute immediate "grant select on bdesai.'
||ora_dict_obj_name ||' to eqhub_developer";';
l_str1 := 'execute immediate "create or replace synonym
eqhub_developer'||'.'||ora_dict_obj_name ||' for
bdesai'||'.'||ora_dict_obj_name||'";';
DBMS_OUTPUT.PUT_LINE(replace(l_str,'"',''''));
DBMS_OUTPUT.PUT_LINE(replace(l_str1,'"',''''));
dbms_job.submit( l_job, replace(l_str,'"','''') );
dbms_job.submit( l_job, replace(l_str1,'"','''') );
END IF;
WHEN 'DROP' THEN
if ( ora_dict_obj_type = 'TABLE') then
l_str := 'execute immediate "revoke select on bdesai.'
||ora_dict_obj_name ||' from eqhub_developer";';
l_str1 := 'execute immediate "drop synonym
eqhub_developer'||'.'||ora_dict_obj_name||'";';
DBMS_OUTPUT.PUT_LINE(replace(l_str,'"',''''));
DBMS_OUTPUT.PUT_LINE(replace(l_str1,'"',''''));
dbms_job.submit( l_job, replace(l_str,'"','''') );
dbms_job.submit( l_job, replace(l_str1,'"','''') );
END IF;
END CASE;
end;
Source: http://www.allinterview.com/showanswers/72132.html
Hope this helps you :)
Thanks,
Balaji K.

Similar Messages

  • Why the delivery date is the same date as 'transptn plan date" & loading date' & ' good issue' & GR end date'

    Hi Experts,
    why the delivery date is the same date as ‘transptn plan date” & loading date’ & ‘ good issue’ & GR end date’.
    in shipping tab i can see Planned Deliv. Time  170 Days ... wat could be the reason.
    Many Thanks:
    Raj Kashyap

    Hi Jurgen,,
    Thanks for quick reply!!
    But i didnot find any things like that .. what could be the customizing .. and we are using GATP from APO side.
    \Raj Kashyap

  • STPO's  -- load date , goods issue, transport is not appear

    Hi Guru's
    I'm received one case, while creating the STPO's (Different company codes) in items details -> Del.sch-> transport, load date and goods issue is not appear. The Delivery date is 25.02.2008.  next day the user as change the del.date from 25th to 26th.  transport,load date and goods issue is appear.
    Anybody plz tell me how its happen like this, and tell the root cause.
    Regards
    chandru.

    Hi Nilima,
    When running off RSA3, it will use a dialog process while when called from the PC it will be using a background process.  Check the 'abap/time' setting in rz11.
    Moreover, if it took only two hours to process last month, it is improbable that data has increased to such a large extent in a month's time.
    It is possible that new jobs have been added on the R/3 side that runs at this time.
    It may be a good idea to try and run this Process Chain when the R/3 system is lightly loaded. 
    Discuss this with the Basis Team.
    Best Luck!
    Mathew.

  • SQL LOADER DATA INSERT ISSUES

    I tried inserting data into an empty table in my database but got the following error:
    SQL*Loader: Release 11.1.0.6.0 - Production on Tue Jul 7 22:01:35 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-350: Syntax error at line 7.
    Expecting "," or ")", found "VARCHAR2".
    countryname VARCHAR2(25),
    ^
    What is wrong what this please? Find below the contents of .CTL and .DAT files.
    Content of load_country.CTL
    LOAD DATA
    infile '/D:/Data/Load/load_country.dat'
    INTO TABLE ASSET.COUNTRY
    INSERT
    FIELDS TERMINATED BY ';'
    (countrycode,
    countryname VARCHAR2(25),
    population NUMBER(10))
    The content of the load_country.DAT file:
    BEN;Benin;8791832
    BFA;Burkina Faso;15746232
    CPV;Cape Verde;503000
    Thank you.
    Ofonime Essien.

    Hello,
    After solving the Varchar2 problem, I received this error for the NUMBER data type:
    SQL*Loader: Release 11.1.0.6.0 - Production on Wed Jul 8 11:47:16 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-350: Syntax error at line 8.
    Expecting "," or ")", found "number".
    population number(10))
    ^
    I replaced the Number data type with Float but received this error:
    SQL*Loader: Release 11.1.0.6.0 - Production on Wed Jul 8 11:52:27 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL*Loader-350: Syntax error at line 8.
    Expecting valid column specification, "," or ")", found "(".
    population Float(10))
    ^
    Replacing Number data type with Integer, I received this error:
    SQL*Loader: Release 11.1.0.6.0 - Production on Wed Jul 8 12:17:11 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Control File: D:\Data\Load\tsl.CTL
    Data File: D:\Data\Load\c.dat
    Bad File: D:\Data\Load\c.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array: 64 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table C, loaded from every logical record.
    Insert option in effect for this table: INSERT
    Column Name Position Len Term Encl Datatype
    COUNTRYCODE FIRST * ; CHARACTER
    COUNTRYNAME NEXT 27 VARCHAR
    POPULATION NEXT 10 INTEGER
    SQL*Loader-941: Error during describe of table C
    ORA-04043: object C does not exist
    Thank you so much.
    Ofonime.
    Edited by: ofonime on Jul 8, 2009 7:09 PM

  • Hyperion Planning Loading Data refreshment issue

    Hi All,
    I have use load data utility and it will load meta data in to planning application and for effect the same in Essbase
    need to refresh the application using manage data base i don't want to refresh the data base
    want i exactly i want to do is once my meta data or data change in staging area i run the load data utility
    and it will affect on Planning as well as Essbase at the same time.
    please suggest can it posible without refreshing or any other way to do this..
    i don't want to refresh manually it would be a problem it should be automated.
    Thanks
    Pramod

    Hi There,
    I fear that the utility(we're talking about) supports only- flat files.
    If I'm correct, you may've to extract the data from staging area & master tables in a format conducive to the Planning app. dimensions & then invoke your batch file that calls OutlineLoad utility. Obivously, OutlineLoad utility will look for the latest extracted files before each run.
    If you've ODI, you can build a simple interface & then a package to automate this for you. This avoids dealing with extraction layer in your architecture.
    - Natesh
    P.S.:- I wish John Goodwin corrects me, if I'm wrong :)

  • XE11G APEX /LOAD DATA FROM SPREADSHEET/TO EXISTING TABLE: ERROR

    if a column is selected not to be uploaded,then no data can be upload successfully.

    Hi,
    try this link.
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Note:
    If you need to upload excel data into Apex table as admin/developer not end user then you can use utility->Data-> workshop->Spreadsheet Data
    Thanks,
    Logaa

  • Closing NetStream doesn't stop loading data in Opera

    Hi,
    i'm wondering if any of you experienced this problem before?
    For me Flash Player doesn't stop loading data when issuing
    the close command for a net stream that is progressively
    downloading data, only the video stops. I'm using Windows XP SP2,
    Opera 9.27 and Flash Player 9.0.124.0. It works fine in Firefox,
    Mozilla, Seamonkey, IE and Safari.
    I'm not doing anything special, just the following script
    quote:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    vid.attachVideo(ns);
    ns.play("path-to-the-video.flv");
    and then closing the stream with "ns.close()".
    Regards
    Frank

    Greeetings,
    It's probably still loading some content, such as Flash-based ads, etc. If you don't like those, disable JavaScript in Preferences>Security or install click2flash. You can also just press the Esc (Escape key) to stop the loading entirely.

  • Import/Load data including index

    Hi,
    I'm new to oracle...
    I try to import date from csv file using apex load data.
    Data are imported successfully, but if I would like to load also index values (My index is number) Oracle assigns new values to it. So I need to change them amnually by editing fields.
    How to load values into index.
    Thank you.
    Message was edited by:
    user525249
    Or as workarroun I can create additional column and "copy" all values into index clumn.
    Any idea about sql statement?

    after searching web found this:
    update table name set a=b, b=a;
    This SQL statement will swap values between 2 columns...

  • The Game Center is "unable to load data due to network connectivity issues or errors".

    The Game Center is "unable to load data due to network connectivity issues or errors".
    My internet is fine: all other apps that do not rely on the Game Center work, as does my browser and other online functions; additionally, a friend's iPhone connects to his Game Center perfectly while he is sitting next to me.
    Closing the Game Center app and then reopening it is ineffective. Opening the options for the Game Center in the settings, logging out of my Apple ID, then logging back in, and then reopening the Game Center is ineffective. Opening the options for the Game Center in the settings, logging out of my Apple ID, then reopening the Game Center app and logging back in from there is ineffective.
    This issue has gone on for more than a month, and so the phone has gone through all variations of "turn it off then back on again, refresh the system, etc etc" that are the basic first suggestions for trouble shooting.
    One game app, which required a Game Center profile to launch, stopped working entirely, and would return a message saying something like "connect to the Game Center". I eventually deleted it to free up space. Other games which can be linked to the Game Center to connect with friends simply fail to link, returning "Game Center unavailable". This is the aspect that is currently bothering me the most: I cannot play games with friends unless the app can also link to Facebook and connect to friends from there.
    When I open the Game Center, I see the following screen. The bubbles float gently, and it seems as if I had the ability to update my "status". However doing so results in a message that has vanished once the app is reopened.
    Upon tapping Games, either the bubble from the main screen or the option on the ribbon at the bottom, the following screen appears. Clicking on Challenges shows a message that achievements must be viewed to issue a challenge. Clicking achievements results in a message that games must be connected (and from my friend's phone I know I have several apps that should appear).
    Upon tapping friends, it does show me a list of suggested friends pulled from Facebook, but attempting to send a friend request results in the following screen. After accepting the error box, the "send" button for the request is grayed out and unavailable regardless of adding or deleting friends and/or an accompanying message.
    In short, the Game Center is completely unresponsive for no discernible reason, and this problem began with no warning and is now long term. Though my iPhone is older (a 4s), my friend's is even older (a regular 4) and works fine.

    I am having the very same problem on my iPad running ios 7. All is fine on my iPhone it opens no problem - this is running on ios 8. I wish they would fix it.

  • When connected to my Ford Mondeo, my ipod nano can be controlled through interface.  But after while it comes up with message 'loading data' and then freezes.  Anyone else got the issue?

    When connected to my new Ford Mondeo, my ipod nano can be controlled through user interface in car.  This worksd most of the time, but after a while if I try to change the music or search, it comes up with message 'Loading Data'.  I then have to pull out USB and reinseert, at which point it works again.  Has anyone esle expereinced this/have a solution?

    Does not matter if anyone else has this issue.  You need to contact the Ford dealership.  It's their product you are having problems with. 
    If you really want to know if anyone else has this issue, post on Ford's Mondeo message boards.  It's where the Ford car owners hang out.

  • ITunes was unable to load data class information from Sync Services Issue

    Hi,
    Whenever I connect my iPhone 5 to my laptop (running Windows 7) I get 'iTunes was unable to load data class information from Sync Services. Reconnect or try again later'.
    Now I've had a look at all of the various Apple troubleshooting advice (and many threads on the discussion boards) for this and none of it works. I've also spent the best part of three hours tonight trying to remove iTunes completely off of my laptop using various programmes to try and remove all the little bits it leaves behind, but again to no avail.
    I've been having this issue for quite a while now and it first started occuring with my iPhone 4, so when the same issue occured with my 5, I figured it was an iTunes issue or something related instead of just a phone error.
    I decided that I wanted to sort it now as the last two iPhone software updates have errored and I've had to restore my phone and the back-ups have failed on both occasions so it's becomming quite a tiresome process now.
    Any other suggestions would be really useful as I'm starting to think I'm just going to have to start over with my laptop, which I'd rather not do as that would take forever!
    Cheers

    Sorry, I should have also said that I'm running the most recent iTunes software and that I can still actually sync my phone with iTunes.

  • Issue to load data from database to XML file. error: ODI-40768

    Hi,
    While I am trying to load data from database to XML following error is appearing.
    ODI-1228: Task TEST_XML_DATA (Integration) fails on the target XML connection MyLOCALXSD.
    Caused By: java.sql.SQLException: ODI-40768: Could not save the file <default>:C:\DATA_FILE\www.xml because a class java.io.IOException occurred and said: The filename, directory name, or volume label syntax is incorrect
         at com.sunopsis.jdbc.driver.xml.SnpsXmlFile.writeToFile(SnpsXmlFile.java:751)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlConnection.internalExecute(SnpsXmlConnection.java:769)
         at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.execute(SnpsXmlPreparedStatement.java:46)
         at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:166)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:540)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:662)
    jdbc url: jdbc:snps:xml?d=C:\test_xsd.xsd&s=TESTSQL&re=employeesX&ro=true
    physical schema: TESTSQL
    Knowledge modules are:
    LKM: LKM SQL to SQL
    IKM: IKM XML Control Append
    CKM: CKM SQL
    Parameters set are:
    CREATE_XML_FILE: true
    XML_PATH:<default>:C:\DATA_FILE\www.xml
    I have tried to change the directory path but error is still there.
    Could some one please help me to resolve the issue?
    Regards,
    user1672911

    Hi,
    The trouble in "<default>:"  - if you set XML_PATH as C:\DATA_FILE\www.xml instead  <default>:C:\DATA_FILE\www.xml- it will work correctly.
    Greetings,
    Eugene

  • Sales Order Loading Date and Goods Issue Date

    I am getting confused with specific sales orders in our system which have a loading date of 5.11.2008 00:00 and a goods issue of 6.11.2008 00:00, this would imply a loading time of 1 day, I would think. However in our system I look at the shipping point I see default from shipping point is 2 work days. Is there something I am missing or other setting I am not aware of?

    What is the delivery scheduling type you are using for the sales document type? If you are using A change it to X. Also check the loading times.
    Regards,
    GSL.

  • Purchase order delivery shedule tabl , no Good issue date, loading date.?

    Hi Experts
      We found some Purchase order, in po item, it is without goods issue date, loading date and so on.
    Material has set ATP check on mrp3. what's possbile wrong? something wrong for matieral setup or others?
    Thanks
    Alice

    Hi
    Really thanks for your help. You mentioned " SD delivery of the sending plant is created and processed."
    Do you mean in material master , the sales view -delivery plant will impact this po GI date and Loading date? It maybe something wrong?
    Thanks
    Alice

  • Data load in Production Issue

    Hi All !
    1) Loaded data from datasource 2LIS_11_VAITM to PSA. Successfully.
    2) While loading PSA to data target, the activation fails due to invalid characters.
    I have few options:
    1) It has 200 datapackets. Correcting manually is not possible due two huge volume.
    2) Added the invaliid character in RSKC. Though I dont see any other approach.
    3) Writing the routine is also not possible as its a high priority.
    Is the RSKC approach is OK to use? Please advise.
    With Regards
    Rekha

    Hi Rekha,
    In earlier same issue I was also faced and resolved it by RSKC.
    I think you go ahead with 2)......not  a problem at all.
    Coding or FM is somewhat time consuming process for this small issue.
    Thanks-RK

Maybe you are looking for

  • CS4 animated gif imported from Flash - how to link

    I have a few animated gifs published from Flash CS4 the files have clickTag info in the actionscript but Flash will not export that so I need to make the animated .gifs click to their respective links. How do I do in Photoshop CS4? any help?? rdef

  • Syncing issues

    I am having trouble syncing my iPod touch. Not all the songs I purchased are being loaded from iTunes. Search the web and tried different settings to no avail. iPod touch and iTunes are up to date. I did a restore on the device and still not working.

  • CRM integration with R/3

    Hi everybody, i need integrate CRM with R/3, i need the billing document that i've created in CRM goes to R/3 and created a financial document in FI... Anyboby can help me??? Regards, Mauricio Navarrete R.

  • Right align all numbers in table of contents

    One of the entries in my table of contents has the page number right beside the entry. The rest of the page numbers are right aligned. When I "Show Invisibles", an arrow is in the single space between the entry and the page number. For the remaining

  • Can I have both iMovie 09 and iMovie 08 installed on the same Mac?

    Hi, This question may seem odd, but... I work at a college. In my role there, I provide training for students and faculty using a variety of technologies (including the iLife suite). I would like to purchase and install iLife 09 for my Mac for person