DDL Through a DB Link

I have a table that I am inserting into through a db link. The table I'm inserting into has an index on it. I would like to be able to remove the index before performing the insert.
But DDL is not allowed through a link. Any suggestions?
null

I think you can create a procedure which has dynamic SQL statement to drop the indexes. And execute this procedure using dblink.
example for oracle 7.3:
procedure abc is
cur_int INTEGER;
var_cnt INTEGER;
begin
dynsql := '<DDL statement>';
cur_int:= DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(cur_int,dynsql,DBMS_SQL.V7);
var_cnt:= DBMS_SQL.EXECUTE(cur_int);
DBMS_SQL.CLOSE_CURSOR(cur_int);
END abc;
execute this procedure remotely abc@dblink
I think in oracle8i u can use execute immediate instead of dbma_sql
HTH,
-ramesh
null

Similar Messages

  • Is there a way to remove my facebook contacts from my phone contacts list?  I had an iphone 4 and it was easy to shut off from teh contacts through the groups link at the top left, but the iphone 5s does not have this feature nor can i figure it out throu

    Is there a way to remove my facebook contacts from my phone contacts list?  I had an iphone 4 and it was easy to shut off from teh contacts through the groups link at the top left, but the iphone 5s does not have this feature nor can i figure it out through the settings feature or anything else....HELP please as it is annoying to see all of these contacts!

    Hello ymprice91277, let's solve this mystery! To unlink the Facebook contacts go to Settings, Facebook, turn off contacts.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Mass upload of documents through SAP Archive Link

    Hi Experts,
    Our client is having a requirement, to upload legacy (old) data from third party tool to DMS Content server through Archive link. Tool is implemented and it works fine for attaching individual document along with SAP Object like, Purchase Order, material, etc.
    We dont have any idea as how to upload bulk of drawings for material, need your advice on this.
    Regards,

    Hi,
    I am trying to get more info on how to bulk upload employee documentation through SAP Archive Link' OpenText Enterprise Scan into the categories in OAWD. Once the documents are in Enterprise Scan the Administrator needs to link these to the categories in SAP. This is a manual process - is there a way to bulk upload these documentation to the right categories? Since these documents vary I am not sure that OCR will be a help.
    Pleae could you help in this regard.
    Thank you.
    Regards,
    -- Gustav de Bruyn

  • Since upgrading to 4.0 I've been receiving irritating messages every time I click through via a link embedded in a document or an email. The message says "An error occurred in sending the command to the application". How can I remove it?

    Since upgrading to Firefox 4.0 I've been receiving irritating messages every time I click through via a link embedded in a document or an email. The message says "An error occurred in sending the command to the application". How can I remove it?

    Certainly!
    This is the module in our eMac 1.42:
    1GB PC2700 DDR 333MHz CAS 2.5 184 Pin DIMM
    The vendor, Other World Computing, ships to the UK but I suspect the shipping would make it pricy. I also trust this vendor:
    Apple G4 eMac 1.42GHz (184 Pin PC2700 DDR DIMMs)
    Between the two vendor's description, you should have a good idea of the Specs
    PPC Macs do not like hi-density PC RAM. That's why I linked these two; they send the right stuff to Mac users.
    Crucial UK is usually cited as good but, like their US counterpart, seldom go against Apple's outdated specs. See:
    http://www.crucial.com/uk/store/listparts.aspx?model=eMac%20(1.42GHz)&Cat=RAM
    They show the max RAM for your model as 1GB--yesterday's news. However, if you order their offering for a G5 iMac, you get the larger modules. Here is a listing for a 2GB kit (2 x 1GB modules) of the right config:
    http://www.crucial.com/uk/store/listparts.aspx?model=iMac%20(G5-1.8GHz%2C%2020-i nch)&Cat=RAM
    Hope this didn't muddy the water!
    Allan

  • 1142 AP will not join Controller through a D-Link POE Switch

    This is fun.
    I'm trying to use 1142 APs with a 2504 Wireless Controller through a D-Link 48PT GBIT XSTACK SWITCH (DLI-DGS-3120-48PC/SI).  (I know.  Shame on me.  Couldn't help it.)
    At any rate, the 1142 AP joins with the wireless controller ONLY when I attach it directly to the controller.  When connected directly to the controller the AP functions normally and all is well. 
    When I attach it through the D-Link switch, the AP flashs green several times, indicating that it can't find the controller. 
    I suspect that there's some setting on the D-Link switch that's preventing the AP from seeing the controller, but I have no idea what that might be. 
    Any suggestions would be helpful.  Thanks.

    leolahoo,
    Thanks for responding.  I appreciate it very much. 
    I checked the management interface in the GUI on the controller (which is set to an internal IP address 10.1.1.20), but after doing that I am not sure what you mean by "the link should be untagged."
    UPDATE:   I just saw on the main interface screen that the VLAN identifier for the management interface is marked as "UNTAGGED."
    Also note the ping test results I sent to Ron above.
    Any idea as to where to proceed from here?
    Thanks very much.
    Ken

  • When I try to open my project in encore through the dynamic link it says folder cant be found

    When I try to open my project in encore through the dynamic link it says folder can't be found

    Do it manually to see if Encore works... export MPEG2-DVD from PPro (if for a DVD, or appropriate assets for HiDef) and then import the 2 (audio and video) files into Encore for authoring
    Run as Administrator http://forums.adobe.com/thread/969395 fixes some problems
    Specific to CS4, you must update the Roxio component, especially with Win8
    http://forums.adobe.com/thread/1309029
    http://corel.force.com/roxio/articles/en_US/Master_Article/000012592-PX-Engine-Description -and-Download
    Dynamic Link Problems... and a possible fix http://forums.adobe.com/thread/1325281

  • Identifying Technical name of a query through a portal link

    Hi,
    If from a portal link I see a BW report, how can I know its technical name so that I can access it in BEx to see the query definition. The title on the portal appears not to be helping.
    Thanks

    In the future, please do not post the same question more than once:
    Identifying Technical name of a query through a portal link
    Thanks!

  • Intermedia search through a database link.

    Has anyone been able to do a search through a database link on an intermedia index in another database?
    My sql is:
    select title
    from [email protected]
    where contains (title,'test')>0;
    I get the following errors:
    ORA-20000:
    ORA-02063:
    null

    I guess you cannot do this. I read somewhere (not on top of my head where) that this is not supported.
    null

  • How can form communicate through RS232 (serial) link?

    How can form communicate through RS232 (serial) link?
    What I have to use/install/setup/copy?
    Thanks

    You can also create a dll library and use the procedures in this library with the Forms ORA_FFI package. See the Forms online help.

  • Accessing an API through a Database Link

    Hi,
    I am using Jdeveloper 11.1.2.2.0
    My use case is that, I need to access an API through a DB Link and pass some parameters/data using this DB link into the API and commit it into the remote database.
    I will be having a page from where I will passing the parameters, which should be committed into the database of the API provider.
    For this I have created a DB link and tried to query data from the remote database tables, its working.
    How to pass the parameters into the API using DB link and commit it into the remote database ?
    Thanks,
    Nigel.

    Hi Frank,
    Thanks for the suggestion.
    But in my case I need to call the external API using a DB Link.
    I am able to call the API and it is returning me the statements that the new row is being created successfully and returns the ID of the newly created row.
    But when I try again to access the Database through a query it is showing all the Rows with theirs ID's and data inside them, before and after the Row which I entered.
    The rows which has the ID which I entered is having no values in their columns. Is it because the data is not getting committed ?
    What is the reason for this ?
    Thanks,
    Nigel.
    Edited by: Nigel Thomas on Jun 14, 2012 2:52 AM

  • Executing DDL over a DB Link

    Hi there gurus...
    Version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
    As a test of something I wish to do, I'm submitting the following CREATE TABLE DDL statement as a job from within a schema over a dblink:
    declare
    v number;
    begin
    dbms_job.submit@GL_UPDATE_DBA(v,'
    declare v varchar2(2000);
    begin
    execute immediate ''create table tempcb2 (x number)'';
    exception when others then v := SQLERRM; insert into tempcb1 (x) values (v); commit;
    raise;
    end;');
    commit;
    end;The DB Link GL_UPDATE_DBA connects to a remote DB instance using a schema called SUPPORT_DBA.
    When I run this code, the job is submitted fine within SUPPORT_DBA schema on the remote DB. However, an exception is captured and written to the table TEMPCB1 stating: ORA-01031: insufficient privileges.
    When I check the job details on the remote DB using
    SELECT * FROM USER_JOBSin the SUPPORT_DBA schema, the LOG_USER, PRIV_USER and SCHEMA_USER all list the proper value: SUPPORT_DBA.
    From the documentation description of PRIV_USER, this job should be running with the privileges of SUPPORT_DBA and therefore, to my feable mind at least(!), should be able to create a table within that schema.
    Why is the job unable to create a table in the SUPPORT_DBA schema?? Have I misinterpreted the way jobs (and their associated privs) work??
    Thanks in advance...

    Hi,
    Supposedly anonymous PL/SQL blocks run always with invoker's rights but if you're using a fixed-user db link it makes me wonder... fixed should be the fixed user nevertheless. I wish I had another instance to test this here properly.
    Anyways, I believe for it to work properly you will need to grant the relevant privileges to SUPPORT_DBA directly, NOT through roles.
    Users connect using the username and password referenced in the link. For example, if Jane uses a fixed user link that connects to the hq database with the username and password scott/tiger, then she connects as scott, Jane has all the privileges in hq granted to scott directly, and all the default roles that scott has been granted in the hq database.http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/ds_concepts002.htm
    If it doesn't work regardless of the direct grants, could you post your create database link statement please (I don't wanna see the password :p )?

  • I have the newest version of FF but every single page shows lines through ALL the links!!!! How can I get this turned off - so annoying! Might have to go back to IE :(

    Every single page I go to has lines through a link - what is causing this? I have Google Chrome and I do not have any problems with them! PLEASE HELP!!

    Sounds like an extension, theme, or style
    Are you sure it is all links as opposed to only visited, no-follow links, or unvisited links
    http://www.lancelhoff.com/how-to-detect-relnofollow-using-firefox/
    Some searches to check out with Google to help you identify the culprit
    site:userstyles.org/styles/ -inurl:browse links strike OR strike-out OR cross-out
    site:addons.mozilla.com -inurl:collection links strike OR strike-out OR cross-out
    another reason might be that Mozilla and Google use colors that make
    marking links as visited/unvisited difficult to see.
    Consider Styles that you can turn on.off via "Stylish" extension
    * Stylish :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/stylish/
    * No Follow links, mouseover id of other links (DM*) - userstyles.org<br>http://userstyles.org/styles/10987/no-follow-links-mouseover-id-of-other-links-dm
    * Red: Mark visited links as read on unruly domains - Themes and Skins for Mozilla - userstyles.org<br>http://userstyles.org/styles/16842/red-mark-visited-links-as-read-on-unruly-domains
    * Red:visited -- Mark visited links Red (*DM) - userstyles.org<br>http://userstyles.org/styles/17357/red-visited-mark-visited-links-red-dm
    Color not related to links
    * Bookmarks Toolbar Blue/Folders, Red/Bookmarks - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/9091/bookmarks-toolbar-blue-folders-red-bookmarks
    * Tab Color Underscoring active/read/unread - Themes and Skins for Browser - userstyles.org<br>http://userstyles.org/styles/9023/tab-color-underscoring-active-read-unread

  • Nvarchar(max) of sql server 2005 is not accessible through Oracle DB Link

    hi,
    i have created the DB LINK from Oralce 11gR2 to MS Sql Server 2005,
    am able to access the view of Sql Server from Oralce,
    but the Columns which have Datatype nvarchar(max) in Sql Server am not able to access through DB Link.
    can anybody know about this issues?

    Pl do not post duplicate threads - Datatype nvarchar(max) not accessable (DB Link from Sql 2005 to Ora 11gR2 )

  • 3 way one-to-many through a single link table

    I have 3 tables that are linked through one to many relationships in a single link table. Here's the real relationships:
    assay(id)
    multiplex(id, assays)
    markerset(id, assays, multiplexes)
    Here's the database schema:
    assay(id, name)
    markerset(id, name)
    multiplex(id, name)
    assay_marker_set(assay_id[not null], marker_set_id[not null], multiplex_id[nullable])
    I've mapped one-to-many relationships between markersets and assays, and multiplexes and assays, and BOTH of these one-to-manys need to be writable. In the record creation process, assays are associated with markersets, and then assays are associated with multiplexes, which in turn are associated with markersets.
    Here's our dilemma. When committing multiplexes through a unit of work, the one-to-many with assays can't see the one-to-many with markersets, so the commit fails because the markerset key is null.
    We've gotten around the problem by creating a postSave() method in markerset that writes multiplex changes once they are created. But again, in a unitofwork commit, saving a markerset fires the postSave() method, which writes assays and multiplexes that have not yet been written to the database.
    We've gotten around THAT by only turning on postSave() when creating multiplexes, not when associating assays with markersets.
    My question is, is there a more conventional approach to this problem? Clearly, the database needs to be reworked, but time constraints and the quantity of data to be curated makes changing the schema impossible. Or have we arrived at the most sensible solution to a ridiculous problem? Currently what we have works, it's just incredibly complicated, and nearly unmaintainable.
    Thanks for the time to even read this post, and mocking is permitted ;-)
    Paul Cooper
    GlaxoSmithKline US Bioinformatics

    Looks like your object model does not match your data model.
    From you object model you seem to have,
    Assay
    MarkerSet 1-m Assay, 1-m Multiplex
    Multiplex 1-m Assay
    From your data model you have,
    Assay 1-m AssayMarkerSetAssociation
    MarkerSet 1-m AssayMarkerSetAssociation
    Multiplex 1-m AssayMarkerSetAssociation
    AssayMarkerSetAssociation 1-1 Assay, 1-1 MarkerSet, 1-1 Multiplex
    (your object model seems to be also missing the name)
    I'm not exactly sure how you have your mapping working, but it would seem the best solution is to introduce an AssayMarkerSetAssociation object into your object model.
    If you do not wish to use this object in your model, you could just use it internally to store the relationship and still have get/set methods for the relationships that you want that initialize themselves from the associations.
    So your object model would be,
    Assay
    MarkerSet 1-m AssayMarkerSetAssociation (+ getAssays, getMultiplexes methods)
    Multiplex 1-m AssayMarkerSetAssociation (+ getAssays, method)
    AssayMarkerSetAssociation 1-1 Assay, 1-1 MarkerSet, 1-1 Multiplex
    In general you seem to be able to get your mapping working without changing your object model, but are probably better off for maintainability to change your model slightly.

  • Looping through objects - testing links

    Hi
    I have a script that moves all instances of a linked object according to user defined X,Y values.
    In order to do this, I need to loop through all objects with links
    What is the best way to do this?
    As of now, this is what I am doing:
    var g = myDoc.allGraphics;
    for (var i=0; i<g.length; i++) {
         if (g[i].itemLink.name == USER_LINK) {
              g[i].parent.move(undefined, [USER_X, USER_Y]);
    It works well, however I ran into some problems where link was null
    Also, is it always the graphic that is linked, or can its parent be linked as well?
    If not, then I can just condition that if itemLink == null - continue
    Any advice and guidance would be much appreciated
    Thanks
    David

    It works well, however I ran into some problems where link was null
    if (g[i].itemLink && g[i].itemLink.name == "USER_LINK")     //     should be enough
    Also, is it always the graphic that is linked, or can its parent be linked as well?
    Graphic can be linked ==> itemLink !=null and itemLink.status can vary
    or pasted ==> itemLink == null.
    As far as I know graphic.parent can not be linked.
    However not every linked graphic.parent can be moved. I e. those one which are anchored with
    AnchorPosition.INLINE_POSITION and AnchorPosition.ABOVE_LINE
    Above case can be a source of error as well.
    Consider also locked object or locked entire layers.
    Jarek

Maybe you are looking for

  • How to re-format an external drive?

    I had a G3 iMac with a 160 GB internal drive that was running an earlier version of OS-X. When I installed that drive, there was a limitation that only allowed it to recognize about 120 GB of that drive. I now have an iMac G5 and want to use the 160

  • Applecare registration is not working, help needed

    Hello, my macbook 1 year warranty expires tomorrow and I purchased applecare today. I logged on to register it and the webpage is under construction and not working for 2 more days. What can I do to register? I tried calling to register and they are

  • Using a servlet to send binary data

    There is a section of our intranet that need to hold documents that have to be available only for a certain group of users. Here's my approach (if you think of a better one, please tell me): 1-all the files are in a directory upper than WWWRoot so th

  • NW 7.1 PI installation Error

    Hi, I am installing NW 7.1 PI on windows 2008 with SQL server 2008 Right before ABAP Import it throws error - test connection to databse failed sapinst log file says check R3load.exe log and R3load.exe contain following error - sapparam: sapargv(argc

  • Can't start http server ASControl service

    Hi, I installed http server from companion cd for oracle 10.2.0.3 but when configuration assistants was setting http server give the message failed. Now i can´t start http server service. INFO: El asistente de configuración "OC4J Configuration Assist