Call the file sql plsql

Hello
I'm stuck for several days in this issue. Hope someone help me.

I'm using Oracle 11.

I am writing a utility to purge the data from the database based on certain criteria.
We do not have physical (actual) the partitions present on our system (since we do not use Enterprise edition).
We have 57 paintings representing 57 partitions. Then, we create a view of all of these 57 tables-

CREATE or REPLACE VIEW MY_VIEW AS
Select [column_names] from table1
UNION ALL
Select [column_names] in table2
UNION ALL
Select [column_names] in table 3
UNION ALL
:
:
:
Select [column_names] of table57
;

This superior query is saved in the 'body' of user_views.

Now when a user wants to delete a partition-
-I read the body of the request in the .sql file.
-Edit the .sql file that is, remove the unwanted ' select * from many '
-Loss of vision.
-Recreate the view from the edited .sql file.


The question is in the creation of the view on the fly of the procedure-
-I'm not EXECUTE IMMEDIATE 'CREATE VIEW... ' and ' DBMS_SQL. PARSE' the request body exceeds 32,767 characters.


So I chose the option of filing to write. In the file, I write the query VIEW and then I want to create the view from this file.

Now, I'm not able to call the .sql that contains
CREATE OR REPLACE VIEW MYVIEW AS
Select...
UNION ALL
Select...
:
:
Select...

Length of character of this file is about 90000.



Please guide me in this issue.
Any new idea to manage very large display in the long term is also welcome...


Thanks in advance
Micheline
ARGE view at run time is also welcome...


Thanks in advance
Micheline

When you use DBMS_SQL, the declaration must not end with a semicolon, or you will get ora - 911.

---------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • Is it possible to call a file sql in a pl/sql block

    Hello

    I want to call a file sql in a pl/sql block.

    the pl/sql block has an exception handler. The pl/sql block runs the sql file and where it throws error then the exception handler will take care of it.

    The sql file will be a master file and he will himself call other sql files.

    is it possible to call any pl/sql block sql file?

    When you say "sql file", what exactly do you mean? You have a file that has just SQL statements? Or you have SQL * more scripts?
    Where are the files stored? They are on your client machine? Or the database server?

    "that in turn calls the other sql files ' seems to imply that the answer to the first question is that you have SQL * scripts more. If you have SQL * more scripts, you need SQL * more to execute. PL/SQL runs in the database Oracle, SQL * more is a client application. It is not practical to have the PL/SQL call SQL * more. Since you have already excluded from the best of bad options, it seems that the answer is no, you cannot have your PL/SQL, run these files.

    As Alex, it's probably a good thing. It seems that your application has been designed incorrectly. If you need PL/SQL, you must be to create stored procedures and functions, and calling those of PL/SQL. Have the PL/SQL depend on the code in flat files outside the database is not a good idea.

    Justin

  • [HELP] How to open a file / call the file manager to open a txt file

    Hello. I saw nothing in the docs how to proceed. I want my application to call the file manager to open a txt file. Or any file I want. How is that possible? Please, I beg you.

    Thank you. But also, it does not solve my problem.

    I solved it with that.

    Application of InvokeRequest;
    request.setTarget ("sys.installhandlerui");
    request.setAction ("bb.action.VIEW");
    request.setUri ("WAY OF THE APK FILE");
    invokeManager-> invoke (request);

    I wanted to open an APK file to install it. I discovered that the target for the installer of the APK is sys.installhandlerui

  • How to call the pl/sql function in application of the ADF

    Hi Experts,

    I need to call the pl/sql function in application of ADF, I have logic written in my AM

    Method:

    public String reportStoredProcedure (locationID customerID, number,
    String tailNum) {}

    CallableStatement st = null;
    String v_sanctioned = null;
    If (locationID! = null & & customerID! = null & & tailNum! = null) {}
    System.out.println (locationID + "" + customerID + "" + tailNum);
    Tail string = "TAIL";
    String result = "N";

    try {}
    String stmt =
    "start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
    St = getDBTransaction () .createCallableStatement (stmt, 0);
    st.setNull (1, Types.VARCHAR);
    st.setNull (2, Types.NUMERIC);
    st.setObject (3, customerID);
    st.setNull (4, Types.NUMERIC);
    st.setNull (5, Types.NUMERIC);
    st.setObject (6, locationID);
    st.setNull (7, Types.NUMERIC);
    st.setNull (8, Types.NUMERIC);
    st.setObject (9, tail);
    st.setObject (10, tailNum);
    st.setObject (11, result);
    St.Execute ();
    System.out.println ("v_sanctioned in AM:" + v_sanctioned);
    } catch (Exception e) {}
    e.printStackTrace ();
    return "N";
    } {Finally
    If (st! = null)
    try {}
    St.Close ();
    } catch (Exception e1) {}
    E1. PrintStackTrace();
    return "N";
    }
    }
    } else {}
    System.out.println ("v_sanctioned is null");
    v_sanctioned = "N";
    }
    Return v_sanctioned;
    }


    Error:

    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
    at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
    at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
    at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Can someone help me how to call...

    Call it in function, not as a procedure you do

    try {
    String stmt =
    "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;";
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(1, Types.VARCHAR);
    st.setNull(2, Types.VARCHAR);
    st.setNull(3, Types.NUMERIC);
    st.setObject(4, customerID);
    st.setNull(5, Types.NUMERIC);
    st.setNull(6, Types.NUMERIC);
    st.setObject(7, locationID);
    st.setNull(8, Types.NUMERIC);
    st.setNull(9, Types.NUMERIC);
    st.setObject(10, tail);
    st.setObject(11, tailNum);
    st.setObject(12, result);
    st.execute();
     = st.getString(1);
    
  • Call the PL/SQL procedure with in out parameter of OIC clob

    Hello

    For a few days, I am facing a problem. I have to call the pl/sql procedure with colb parameter out. I use c ++ and OIC (don't ask me why :)).

    I use a pl/sql problem test procedure:

    create or replace function Test (longField outside clob) return number is
    Number of result;
    Start
    longField: = 'prefix ';
    Result: = 12;
    Return (result);
    end Test;

    So I do all the stuff with the connection to the DB,

    I prepare the statement: "start: res: = test(:param); end; »
    So I OCIHandleAlloc (m_pCtx-> hpEnv,
    (void *) & m_hpStatement,.
    OCI_HTYPE_STMT,
    0,
    (NULL);
    and
    OCIStmtPrepare (m_hpStatement,
    m_pCtx-> hpErr,
    (...),
    (...),
    OCI_NTV_SYNTAX,
    OCI_DEFAULT);

    Before the binding I prepare parameters. For a clob I devote to the lob Locator:

    OCIDescriptorAlloc ((dvoid *) m_pCtx-> hpEnv, (dvoid *) & m_pLobLocator,)
    (ub4) OCI_DTYPE_LOB (size_t) 0, (dvoid *) 0);
    OCILobEnableBuffering (m_pCtx-> hpContext, m_pCtx-> hpErr, (OCILobLocator *) m_pLobLocator);

    that I bind parameters using OCIBindByName and OCIStmtExecute statement execution.

    I get an error
    ---------------------------
    Microsoft Visual C++
    ---------------------------
    Unhandled exception in... (ORAOCIEI11. (DLL): 0xC0000005: Access Violation.

    My question is: is it possible to call the pl/sql procedure with parameter BEAK clob?
    If Yes, what steps I need to do to succeed?

    Thank you for your response.

    Hello

    Of course, it is possible :)

    Show that you are your piece of code that is binding.
    Are you sure you had correctly the lob descriptor in the call to bind?

  • Call the function browser plsql (403 error)

    Hello

    I m pl/sql developer and I m new in APEX. In fact, I have little trouble with Express application, authorization and call browser plsql. I found the pl/sql procedure to see the image (actually I don't like in pl/sql, I'll be happy if I calll Hello World of browser).

    My Info: Oracle 12.1 c, Windows 7, default APEX 4.2

    I found it is appeal possible function of the url in this way: http://localhost:8080/apex/APEX_040200.just_print and he return 403 for me, where:

    Just_print is defined as

    create or replace
    PROCEDURE JUST_PRINT AS
    BEGIN
    htp.p('HAF');
    END;
    

    Just_print, it's in the APEX_040200 scheme

    According to web articles that I give perform this function ANONYMOUS or APEX_PUBLIC_USER or PUBLIC. I don't like the safety (my local host, learning...) so I have him granted for all:

    grant execute on just_print to anonymous,apex_public_user,public;
    

    It must stop return 404 (not found) and start to return a 403 (forbidden) - it works (for anonymous scholarship, but I hold decided run grant for all accounts - just for sure)

    Now, according to web I must change the function wwv_flow_epg_include_mod_local (in the APEX_040200 schema) and add the name of function. I tried but doesn't work. Yes, there is first line of the procedure returns alwas FAKE and I remove it, I also added the procedure IN the list. And also modified function that simply returns TRUE. Nothing works, real version is:

    create or replace 
    function                                     wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        if upper(procedure_name) like '%PRINT%' or upper(procedure_name) like '%IMAGE%' then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    

    (u just removed comments to be the shortest).  Here it's like printing (the function) and image (feature first tried) and superior, also when I try this:

    begin
    if apex_040200.wwv_flow_epg_include_mod_local('just_print') then 
     dbms_output.put_line('OK'); 
     else dbms_output.put_line('FAIL');
     end if;
    end;
    

    It will print OK (and also for ctrl + c/ctrl + v in web broswer) and also for any changes - APEX_040200.JUST_PRINT etc so it should not be a typo error.

    When I call just_print or PL/SQL region show_image (create page - add plsql - region and add the code begin just_print; end ;) it works.)

    Also, I've run the instalation guide ACL policy (all).

    I not found any other step to must be done - so I don't have anything else.

    --

    Any suggestion what I am doing wrong? (except the whole life, but this is another story...) )

    THANK YOU VERY MUCH

    Hello

    I don't think it's your problem, but it's bad idea create procedures to the diagrams of the system as APEX_040200.

    Create procedure to the own schema and then create public synonym for it.

    Grant execute privilege to public for the procedure, just to test.

    And change 040200.wwv_flow_epg_include_mod_local function always returns true, just to test

    create or replace
    function wwv_flow_epg_include_mod_local(
        procedure_name in varchar2
    ) return boolean
    is
    begin
      return FALSE;
    end wwv_flow_epg_include_mod_local;
    

    Then try the URL http://localhost: 8080/apex/just_print

    Kind regards

    Jari

  • Download the file SQL PL - name of the file appears as the name of the procedure?

    Hello

    I followed the article below to create a download link to my db BLOB, but when you download the files, the name of the file appears under the name of procedure rather than the desired file name.

    http://download.Oracle.com/docs/CD/E10513_01/doc/AppDev.310/e10497/up_dn_files.htm#CIHDDJGF

    any ideas why this happens?

    Thank you
    J

    Hello

    I posted my example of work on apex.oracle.com

    EDIDEV workspace
    USER username
    password jadohi

    Application is called app download - 29208. Try to download and import it into your workspace and see if it works. There is also a script file called 29208.sql in the workshop/SQL Sql Scripts you could download with the proc and table scripts.

    Concerning

    Paul

  • How to create ProcessModel calculate TOTAL as follows to call the file in the sequence?

    I made a custom operator Interface and I want to support a progress bar for giving the user indicates to what extent this time they represent.   I already have the infrastructure of reminder Setup so that the progress bar will be updated based on a Message from the user of the motor.

    In the process template itself, I put in place a "ProcessModelPostStep" (the purple one) reminder so that after all the steps of the calling sequence file I increment an internal counter and send these data as well as the Message of the user.

    The only missing part is to know how to calculate the TOTAL number of steps in the sequence file calling.  I can get the total number of SEQUENCES defined in the calling file but I how to recursively on each sequence loop excluded from top down by counting all the steps of the sequence of the callee.

    Appreciate any help in getting this last piece in place.

    Thank you!

    I have a better solution in the images below.  The code snippet is the code called by TestStand to introduce recursion.

    The attached code is the recursive call.  It is similar to my first post, but the fixed a bug with the cast of references.

    This should get the total number of step.  The code works under some assumptions:

    1. all called sequences are in the same file in sequence.  (You can add steps to also get the path to the movie file and retrieves the sequence from there.)

    2. There is no asynchronous LabVIEW step in TestStand.  (These are treated as sequence calls into the API, and you must add code to sort.)

    Pulido Technologies LLC

  • Import data... Wizard creates the file SQL Loader ctl with columns out of order

    4.1.1.19 SQL Developer version. Connected to Oracle XE to test this.

    I'm trying to understand what the problem with the data in my import file when finally, I realize that the Import Wizard of data did not care how I traced the columns at all. The ctl SQL Loader file generated by the Wizard expects that the columns of data in my file to match the order that they appear in the definition of the table and not how they have been mapped in the wizard. Manually edit the ctl file is a workaround. Has anyone else seen elsewhere?

    I see that this is a bug.

  • Need to call the PL/SQL Package in the group dynamics of approval class that implements IDynamicApprovalGroup

    Hi all

    This is regarding the approval of invoice AP I need in my project where the user selects the users/people approval when creating the invoice based on logic. There may be any number of users who could be part of the approval group.

    Approval users information is stored in a table with a single Bill.

    When the user initiates invoice approval, approval of the Bill should go to all the people/users selected in the invoice.

    I created the dynamic of approval group which is the result of a java class. This java class implements IDynamicApprovalGroup. (what is the oracle Developer Guide).

    I called PL/SQL to java class package to get all the details of users of custom for the current invoice table.

    I used the DriverManager.getConnection method by hard coding (JDBC URL, Username, Pwd) connection details that works perfectly fine.

    But I don't want to hard-code the connection details because it will change in bodies SIT/UAT/PROD.

    Please ask you to guide me if there is no solution for the information of connection without hard coding it.

    Following code used to get the connection details

    try {}

    Class.forName ("oracle.jdbc.driver.OracleDriver");

    System.out.println ("= class loaded");

    }

    catch (ClassNotFoundException ex) {}

    System.out.println ("= class loading error");

    ex.printStackTrace ();

    }

    Fitting out = null;

    CallableStatement cstmt = null;

    Try

    {

    connection = DriverManager.getConnection ("jdbc:oracle:thin:@xxhostname:1521/SID", "FUSION", "*");

    Connection = GetConnection ();

    System.out.println ("= connection =" + connection);

    prepare the call

    cstmt = connection.prepareCall ("{call XX_AP_INV_DYN_APPROVAL_PKG. {GET_GROUP_PARTICIPANTS (?,?)} ») ;

    cstmt.setString (1, '12345');   ID on invoice

    Exit of the register

    cstmt.registerOutParameter (2, java.sql.Types.VARCHAR);

    Call the stored procedure

    cstmt. Execute();

    System.out.println ("= procedure being executed");

    approvalGroupMembers = cstmt.getString (2).split("#");

    System.out.println ("= output:" + cstmt.getString (2));

    }

    catch (Exception ex) {}

    ex.printStackTrace ();

    }

    Finally

    {

    Try

    {

    If (cstmt! = null)

    close the callable statement

    {

    cstmt. Close();

    cstmt = null;

    }

    System.out.println ("= stmt closed");

    }

    catch (SQLException ex)

    {

    System.out.println ("= stmt close err");

    ex.printStackTrace ();

    }

    Try

    {

    If (connection! = null)

    close the connection

    {

    Connection.Close;

    connection = null;

    }

    System.out.println ("= closed conn");

    }

    catch (SQLException ex)

    {

    System.out.println ("= Close conn err");

    ex.printStackTrace ();

    }

    }

    Thank you

    Dipak.

    HI Dembélé - you should be able to call the provider database from the java class. Documentation is here. However, you need to specify the name of the data provider that is the same in all environments. Do you know what it is? If it's not I'll take a look and get back to you.

    __

    Peter Maurer

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • How to call the PL/SQL of EntityImpl procedure

    Hello

    I have a page that can create/update visitors. When a new customer is created themselves, a line gets inserted into the database table. I use EO for this feature.

    I need to create lines to two or three other table also when a new line is created in the main table. What is the best practice for this feature?

    The 2 options that I know:

    1 create a trigger on the main table and the appeal of trigger for inserting rows in other tables.

    2. call a PL/SQL of EntityImpl procedure after the permanent data is committed to the table. (If this is the best approach, could you please let me know how to get there)

    See you soon

    AJ

    In fact, Java Mail API is included in WLS and JDev, then you can simply add %MIDDLEWARE_HOME%\Oracle_Home\oracle_common\modules\javax.mail_2.0.0.0_1-4-4.jar to your project.

    Dario

  • Call the PL/SQL shell script

    Hi all

    I've seen several links and options for calling a PL/SQL shell script. I was wondering if there is something like DBMS_SCHEDULER. CREATE_PROGRAM-> executable that calls an external program in 11 GR 2.

    Here's what I have to. I have 11 GR 2 database with Dataguard. I have START triggering who begins a DBMS_SERVICE when the role becomes PRIMARY. In the same instance, I would stop the VIP on the former primary database and start the VIP on the new primary database.

    Thanks for the advice and assistance.

    Jan S.

    The URL below links to ask Tom. Inside, he talks about creating a Java procedure in your database that allows you to execute commands from the host OS (PL/SQL calls the proc of Java that runs the host command). There are several ways to run the OS commands, but this one is very flexible. I needed to use it for a task that I have who didn't fit one of the other methods very well.

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:no:P11_QUESTION_ID:3069633370832

  • Add the files sql in sql developer

    Hello. I'm new sql developer. My teacher gave me the sql file format file two times and said I should make a new user in sql developer and add these files to make new tables and then he gave me some exercises to do on this table. New user, I did, but I don't know how to use these 2 sql files and how to make tables using them. Here you can see the files: http://www.2shared.com/file/BTxqsts0/scott.html. Help, please

    Published by: Mateo Falcone on March 3, 2011 03:33

    They don't have to teach you how to use this program?
    I suggest you go through the tutorials within sqldev first aid.
    Basically, you can just open them via file - open, or through Windows Explorer. Then, assign him the login in the upper right and run the Script (F5).

    Have fun
    K.

  • Can we call the file adapter at will

    Hi all

    I have a service with a file adapter that is scheduled to interview for the file every hour, is there a way I can call the process at will and process the files without the service of the vote itself?

    My process

    File-adapter (all voting hours)-> activity

    Thank you
    Tom.

    You can use the 'file synchronous read' option on the file of the adapter to call in the middle of the process.
    like this you can schedule or manually call your service whenever you want to leave it 'read' on demand

    http://download.Oracle.com/docs/CD/E12524_01/Relnotes.1013/e12523/adapters.htm#CHDBBFBD
    FTP adapter Sync Read cluster SOA Suite giving questions

  • How to call the file of JavaScript in the Page header model

    Hello

    I created a Javascript custom.js file and uploaded in the shared-> component static files.
    How to call this file in the Header of Page Template, I mean the exact syntex...

    Thank you
    Deepak

    Hello

    File name must be typed exactly the same as the file that you downloaded.

    Are you sure that your file is OK? Did you remove

    wwv_flow_file_mgr.get_file?p_security_group_id=4967074027259628303&p_fname=custom.js
    

Maybe you are looking for

  • Is it safe to download Silverlight on Mac

    Is it safe to download Silverlight on Mac

  • 2160841 does not install

    Windows update: error code 2 tries to install the update of critical security KB2160841.

  • In video mode shutter speeds

    I just read that the T3i can autofocus in video mode, true? On T5i shutter speed is adjustable during the video?  Sometimes I need fast shutter for objects moving quickly are not blurred.

  • Media center does not open

    Why can I not use Media center?  It loads then stops.  I went through the system auditor, as suggested, and it does not work. I tried to rebuild the data storage, as suggested, and it does not work. What is the problem with media player?

  • Reference Dell 6850 don't RAID not installation

    Hello world hope you might me able to help me, I recently acquired a dell server 6850, she has 1 x 73 GB scsi. How to configure the computer bios so that she sees as a normal non-raid drive... This is not a production server just to test... Once I ha