Call the DBMS package via the link of database

IM changes on tables using dba_tab_modifications, number of databases, 1 metric scheme in 1 case.  to get the latest changes, I have to empty the changes which means I have to exec dbms_stats package remotely.  I can do by creating a proc and calling the proc over a database link.

Remote

create or replace procedure flush_db_info

Start

DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO;

end;

local

create synonym remote_flush for flush_db_info@remote

exec remote_flush;

Is there anyway that I can run the DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO@remote on the local to run on the remote control, without creating the proc/synonym?

This is no biggy, I got it working like this, I just want to see is possible

Have you tried?

Tags: Database

Similar Questions

  • Could not create the link of database of the schema of the ORA/APEX

    Hello

    I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?

    This pattern of localhost was created for APEX.

    Thank you

    I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?

    This pattern of localhost was created for APEX.

    What is developer Sql has to do with the problem? This forum is ONLY for sql developer questions.

    If this isn't a problem with Sql developer please mark ANSWERED thread and repost it in the general forum of the database

    Database General Discussions

    The exception is you say the problem: the user you are using to create the DB link doesn't have the necessary privileges to create the DB link type you are trying to create. Privileges are required on the source and target databases.

    When repost you, you will need to provide:

    1. your full 4 DB for DBs source and target text segment

    2. a copy OF the sql * plus (or other) session you use to create the DB link

    3. information on the user that you use to create the link DB - including the privileges that have been granted to this ulser

    4 information on the type of link DB you try to create

  • Hi where is the link of database previously Windows menu?

    Hi where is the link of database previously menu Windows

    Removed feature: functionality of server, covers and panels and database components behavior

    There is a unique extension to restore these features. Extension is available at: * Vista/Windows 7: C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CC\Configuration\DisabledFeatures * Mac OS X:/Applications/Adobe Dreamweaver CC/Configuration/DisabledFeatures

    As seen on http://blogs.adobe.com/dreamweaver/2013/06/a-look-at-the-modernized-dreamweaver-cc.html

    Video instructions on how to install these file available here: http://www.youtube.com/watch?v=cB2vmNfcq7A

  • Drop the link of database in oracle 11g

    I created a schema with the name of sapsmc which has all the privileges, then I created 1 link of database. Now, I want to drop this database link, but I can't able to drop this error.

    «SQL error: ORA-00604: error occurred at recursive SQL level 1 ORA-20101: Sorry, can't remove any object without the permission of live database SAPGateWay.» ORA-06512: at the level of the 5 00604 line. 00000 - 'error occurred at recursive SQL level %s' * Cause: an error occurred during the processing of a recursive SQL statement (a statement applicable to the internal dictionary tables). * Action: If the situation described in the next error on the stack can be corrected, do so; otherwise contact Oracle Support.

    Then I tried to delete the user SYS, while doing this that I got below error.

    SQL error: ORA-02024: database not found link 02024. 00000 - "database link not found" * Cause: database to remove link is not found in the dictionary * Action: correct the name of the database link

    Please help me I appreciate your efforts.

    ORA-20101: Sorry, can't remove any object without the permission of live database SAPGateWay.

    There is not much we can do about it.

    It is an exception defined by the user, probably from a FRONT DROP trigger defined at the level of the database, which prevents people from dropping objects.

    Contact, one who is responsible (DBA?) about how to proceed.

  • Create the link of database error

    Hi all

    I am trying to create a database link (developer both SQL and Sql * more) and I get the error ORA-00933: SQL not correctly completed command.

    Here is the statement:

    CREATE DATABASE LINK msrtp CONNECT TO msrtp_user IDENTIFIED BY 62ROLDS USING msrtp;

    Yes, the global database name is msrtp and I created links db without any problem.

    The problem, it's because the password begins with a number. I have no control on the password and can not change. I tried enclosing in single and double quotes, but it does not work. Is there one way around this other than to change the password?

    Oracle 10g

    Thank you.

    Try to put the password in quotation marks. I created a link using quotes around the password and I was able to choose to use it. With 11g and passwords case-sensitive using double quotes may be necessary at least for the mixed case passwords.

    HTH - Mark D Powell.

  • My firefox crashes after I called the link to google maps. Basically, does google maps useless.

    Google maps allowing to operate perfectly. I am a Taxi driver and often look for addresses and places with Google maps. Can you help me get it working again?

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Call the function of database from a process of OnDemand

    Hi all

    I'm stuck in a mud.

    I created a PL/SQL function to call a function of database and return with the days between two fields. It works fine and I get the results.

    But now I want to do the same thing in a process of anonymous request asked PL/SQL

    Don't know why its not working, I should change the script below I use the anonymous PL/SQL function instaed?
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    DECLARE
    ANSWER1 VARCHAR2 (200);
    ANSWER2 VARCHAR2 (200);
    BEGIN

    ANSWER1: = tw_operations_vic.NETWORKDAYS(:P10_AGREED_COMPLETION_DATE,SYSDATE);


    Return ANSWER1;
    END;
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    Frank

    Hi Frank,.

    In a procedure, you can use BACK (it's only for functions). For an application process, use htp.p (answer1) and get this response in the Javascript code that you use to call this process.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • Created view of the link of database on dg4msql a column type as long

    Hi all

    I read some views of SQL server using dg4msql to Oracle database 11 G r2.

    All work fine, except columns that are usually varchar2 are now of type LONG. It is the origin of the issues given the wide range of restrictions of data type long.

    Is it possible that when I create a view in Oracle such as:
    CREATE or replace view as v1 (
    select a1, a2, a3 from msqlserver_table@dblink)
    The columns do not come as long but as varchar2 upward?

    Problem, it is once its long form, I can't change it to a different format in a SELECT statement (as cast as varchar 2 etc.).

    Thank you.

    Published by: xarg-Xrc on October 3, 2012 19:26

    Add these 2 parameters to your gateway init file:
    HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    It allows me to describe the nvarchar sunk to the varchar column (4000) in Oracle as varchar2 (4000).

    P.S.: Please make sure you open a new connection to gateway (for example to launch SQL * newest) when you have changed a setting gateway as changes in the bridge file are read at the beginning of a new gateway connection handshake.

  • recreate the link db pvt without password

    It will take place the change of password occurs every month for particular schema and we have links from db pvt created on this scheme.  We want to re-create the db again links whenever password change. Version of Oracle's 11g.

    Is there any to recreate existing db link pvt without knowing the password (password) of the schema where the reset password frequently.

    Hello

    You can create the database links using "current user" style - in order to not specify a user or a password. If the source and destination game, then it will connect - see demo below. If you update the password on both ends at the same then the link continues to operate.

    See you soon,.

    Rich

    SYS@db1 > create demo user identified by demo.

    Created by the user.

    SYS@db1 > grant create session demo;

    Grant succeeded.

    SYS@DB2 > create demo user identified by demo.

    Created by the user.

    SYS@DB2 > grant create session, create the link of database for demo;

    Grant succeeded.

    SYS@DB2 > conn demo/demo

    Connected.

    Demo@DB2 > create xx link of database using the 'DB1 ';

    Database link created.

    Demo@DB2 > select sysdate in dual@xx;

    SYSDATE

    --------------------

    JANUARY 20, 2014 11:35:03

    DEMO@DB2 >

    SYS@db1 > alter demo user identified by new;

    Modified user.

    [oracle@]:DB2:[~]# sqlplus demo/demo

    SQL * more: Production release 11.2.0.2.0 on Mon Jan 20 11:35:47 2014

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    With the partitioning option

    Demo@DB2 > select sysdate in dual@xx;

    Select sysdate from dual@xx

    *

    ERROR on line 1:

    ORA-01017: name of user and password invalid. connection refused

    ORA-02063: preceding line XX

    SYS@db1 > alter demo user identified by new;

    Modified user.

    Demo@DB2 > conn new/demo

    Connected.

    Demo@DB2 > select sysdate in dual@xx;

    SYSDATE

    --------------------

    JANUARY 20, 2014 11:36:43

  • Impdp fails via data link

    Hello

    I am trying to import a particular schema of another instance in my instance via a link of database using Data Pump.

    Source instance: Solaris on Sparc 10.2.0.4.0 64-bit
    Instance of the target: Linux on x 32, 10.2.0.4.0

    I created a database on the target database link and checked the link to work, i.e. I could query the tables in the remote database by using the user who should receive the data.

    I created a directory "exp" on the target database and have the appropriate permissions for 'mh03.

    Then I tried importing and got an error:

    -----

    Oracle@padsw7ora01 imp$ impdp mh03 / * NETWORK_LINK = padsol25 = test_bas_bkrus_d123120 REMAP_SCHEMA = test_bas_bkrus_d123120:mh03 = exp = imp.log LOGFILE DIRECTORY SCHEMAS

    Import: Release 10.2.0.4.0 - Production on Tuesday, January 20, 2009 14:47:30

    Copyright (c) 2003, 2007, Oracle. All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39006: internal error
    ORA-39113: unable to determine the database version
    ORA-02083: name of a illegal character data '-'

    ORA-39097: Data Pump job encountered the error unexpected-2083

    Oracle@padsw7ora01 imp$

    -----

    I tried searching metalink and web but not able to find any useful information. I tried using the VERSION = '10.2.0.4.0' parameter, but this did not help either (error message remains as what).

    I found what seemed somewhat related:

    ORA-39113: unable to determine the database version
    Cause: The Data Pump has been impossible to determine the level of compatibility with the version of the current database using SYS. DBMS_UTILITY. DB_VERSION.
    Action: Be sure you have access to the DBMS_UTILITY package for you. If it is a network work, make sure that package DBMS_UTILITY access is granted to you on the remote instance.

    But even that "grant execute on SYS. DBMS_UTILITY to mh03' did not help at all.

    I realize that the target database is compatible to 10.2.0.3.0:

    -----

    1 declare
    2 v varchar2 (1000 char);
    VARCHAR2 (1000 char) 3 c.
    4 start
    DBMS_UTILITY 5. DB_VERSION (v, c);
    6 dbms_output.put_line (v);
    7 dbms_output.put_line (c);
    8 * end;
    SQL > /.

    PL/SQL procedure successfully completed.

    SQL > set serverout on
    SQL > /.
    10.2.0.4.0
    10.2.0.3.0

    PL/SQL procedure successfully completed.

    SQL >

    -----

    Any ideas, what went wrong and how can I remedy this? Thank you very much!

    Kind regards

    Robert

    Published by: rklemme on January 20, 2009 06:16

    rklemme

    In my case it had nothing to do with the host name of the server, or name resolution. It was related to the global_name of the instance.
    I could question using the link but not to perform a remote import.

    Try to temporarily change your global_name by removing the hyphen in domain name and test your import:
    SQL > alter database rename global_name to .pad. * mycompany * .net.

    PY

  • Link to database compiling no patch of 6i form 17

    Hi researchers.

    Recently, I have urgraded my form 45 oracle form 6i and everything went well except the database to Oracle 10 g Server link.
    The 6i shape is connected to oracle 8i database and work too thin... Database link to 10g 45 form worked well.
    After the upgrade, it is not able to establish the link to database, it displays the error ORA-04054 link of database does not exist.
    SQL, all works very well.
    My procedure looks as follows: -.

    DJV_TYPE MASTER_JOURNAL@AMWAL_DATA. MJ_TYPE % TYPE: = 1;
    DMJ_DOCNO MASTER_JOURNAL@AMWAL_DATA. TYPE % MJ_DOCNO;

    CURSOR GET_DOC_NO IS
    SELECT NVL (MAX (MJ_DOCNO), 0) + 1 MASTER_JOURNAL@AMWAL_DATA
    WHERE MJ_TYPE = 1;

    Please, can someone help me to the topic of this...

    user7390263 wrote:
    Hi Bailey

    Thank you very much. Views has solved my problem.

    If the answers are useful or correct please mark

    May I know one thing, how do I print barcodes in reports 6i?
    A it doesn't matter what available for this font. A few years ago I used UPCEAN6. Font TTF
    for the printing of barcodes in report 2.5. But this font does not well in the report 6i.
    It's just the right impression but don't not scanning by any scanner.
    So can you tell me otherwise for this or any new fonts available for this?

    This question in another thread, I think you have already done

  • Return to a specific page after the call to a procedure via a hotspot link

    Greetings,

    With the help of > > Application Express 4.0.2.00.07

    I have an APEX image map request. I have the hotspot in the image maps links go to a new page in the application and pass a set of Parameters. This part works fine.

    I now have the need to call a procedure from some hotspot links. The procedure call works fine, with one question. When executed, it opens a page of empty with 'Complete' browser at the bottom of the page. Now, I'm stumped. Is there a way I can keep it to open another page? Is there a way I can direct to open a specific page? I have to go about this in a completely different way?

    I hope that there is a code htp that I can add to the procedure to keep it on the current page. Unfortunately, this isn't my strong point. Even some htp code that displays a message and ask the user to click on back or a message that contains a URL that would come back to the page would be great.

    Any suggestions are appreciated.

    This is the code in the image map hotspot...
    < area shape = "rect" coords = "661,240,691,270" href = bg_qcis.create_defect? p_cell = 23-9 > < / a >

    Thank you, Tony

    Published by: hidden on 26 April 2012 15:20

    A call to a URL and includes a URL call to a procedure, redirects to this page. Specs is HTML and browser. As the proc does not refer to something that can make the browser, you see the blank page. "Done" means that the process stops not at an HTTP Error 403, 500, etc.

    Rather than try to navigate to the calling Page using history.back() () or trying to open the URL in a separate window by adding target = "_blank" in the anchor tag of the link on the calling page, it will be much cleaner / more neat if you use on of the UTL_HTTP. Functions of APPLICATION (a 2 signatures) in a process of Page or the application process.

    If you want to avoid a page submit so write an AJAX call to call for an implementation process that calls the Proc URL using UTL_HTTP. REQUEST; and then htp.p the result in the Page like any other AJAX response.

    Kind regards

  • dbAdapter fails during the call to procedure package oracle object type in the parameter out

    JDeveloper 1.1.1.6

    Oracle 11g

    Existing package procedure is defined with the table of objects in input parameters and.

    Package myPackage

    procedure processRecon (numero_projet VARCHAR2,

    INST_ID select NUMBER,

    recon_type VARCHAR2,

    gis_design_stock GMPVT. GMPVT_GIS_DESIGN_STOCK_T,

    stock_uop GMPVT. GMPVT_STOCK_CODES_T,

    x_status OUT VARCHAR2,

    x_escalation OUT VARCHAR2,

    x_recon_error ON GMPVT. GMPVT_GIS_RECON_ERR_T) IS

    GMPVT. GMPVT_GIS_RECON_ERR_T is an array of GMPVT objects. GMPVT_GIS_RECON_ERR, who has 12 fields including the new I added it.

    I have added a new field to the GMPVT object. GMPVT_GIS_DESIGN_STOCK, where GMPVT. GMPVT_GIS_DESIGN_STOCK_T is a table of GMPVT. GMPVT_GIS_DESIGN_STOCK, no problems encountered during the test.

    Next, I added a new field for the object of type GMPVT. GMPVT_GIS_RECON_ERR, the following error below occurs when the DBAdapter is called

    < Summary > Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run operation 'processStockRecon' failed due to the reference: Interaction processing error." Error in the processing of applications from running. GMP_SOA_RECON_PKG. Interaction of the PROCESSRECON API. An error occurred during the processing of the interaction to invoke APPS. GMP_SOA_RECON_PKG. PROCESSRECON API. Cause: java.lang.ArrayIndexOutOfBoundsException: 12 check to make sure that the XML file containing the data of the parameter matches the parameter definition in the XSD. This exception is considered non reproducible, probably due to an error of modeling. ". The called JCA adapter threw an exception of resource. Please review the error message above carefully to determine a resolution. < / Summary >

    I confirmed that the XSD for the stored procedure has in fact change, which has been generated by JDeveloper as I refreshed the database adapter.

    The statement "Cause: java.lang.ArrayIndexOutOfBoundsException: 12" I can't that assume somehow SOA has 12 parameters but the 12 setting was not saved.

    Any thoughts on what I might be missing. I can provide more information if necessary.

    Hello

    This problem has been resolved. Not deployed SOA composite and then deployed to the server of the SOA. For some reason, SOA has been either you see does not changes in the file XSD (cached?) or the XSD was not get updated.

    Thank you

  • Send the link via APEX to update a record

    Hi Experts,

    Is there a simple solution, how to send an email to user with link ("I don't want to receive e-mail on your part in the future")?
    The link must contain certain information key for each user.
    If the user click on the link - update of the table should be done. (some updates of the IDC of 'Y' for 'n').

    Some ideas? (security issues)?

    Data sheet: APEX 4.1.1
    Listener 1.1.3
    DB 11G
    Apache Tomcat 6.0

    THX

    Concerning
    J:D

    jozef_SVK wrote:
    Hi Experts,

    Is there a simple solution, how to send an email to user with link ("I don't want to receive e-mail on your part in the future")?
    The link must contain certain information key for each user.

    Add a column to your table to fill a large number of randomly generated

    If the user click on the link - update of the table should be done. (some updates of the IDC of 'Y' for 'n').

    Some ideas? (security issues)?

    Data sheet: APEX 4.1.1
    Listener 1.1.3
    DB 11G
    Apache Tomcat 6.0

    THX

    Concerning
    J:D

    make a public page and say 200 > create an item called P200_ID hidden > and add onload before heading the process runs only when the value of P200_ID is not null

    begin
    update your_table set idc='N' where id = :P200_ID;
    exception when others then
    null;
    end;
    

    and display a success message like "you have been removed from the email list.

    Just include a super easy link to this page via a random generated number as shown below

    http://host/pls/apex/f?p=APP_ID:200:0:::200:P200_ID:13336079512258098179
    
  • Firefox opens, but this morning, I can't access all the links via Firefox. I can through Explorer. I prefer Firefox. Help!

    Firefox opens, but this morning, I can't access all the links via Firefox. I can through Explorer.

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

Maybe you are looking for

  • What applications are

    What applications can I safely transfer to an external hard drive of my iMac hard drive please?

  • Tecra A8, WinXP SP2 - number with built-in speakers

    Hello I know that this issue has been brought on several times, but I can't find a solution.I recently inherited a Toshiba Tecra A8. Problem is: the built-in speakers can't seem to work, but the sound is fine on speakers headphones or external. Speak

  • Derivate labVIEW FPGA

    Hello world I want to drift a signal, and my first thought was with a registry change (see attached picture) and I would like to know if there might be enough or if it should be improved. Thank you! J.

  • HP Photosmart 7510 will not print duplex documents

    I just installed my 7510 photosmart printer and it won't print in duplex mode.  The drop to double face two choices: print long edge to short edge If I choose one of these options, I get a message saying that they are not supported.  I have a mac boo

  • Headphones Wireless Bose Soundlink 2 installation for windows 7

    Windows 7 64-bit OS laptop Fujitsu lifebook E736 problem: in devices and printers, adding device. able to detect the bose soundlink 2 window bluetooh wireless earpiece. Add the device is finished, but when I right click > service > I can't select ope