Problem with Oracle Fusion of declarations (PL/SQL: ORA-00913: too many values)

Hi all

I use the Sub merge statement and I'm getting too many questions of lines when I'm compiling.

BEGIN

FOR te_rec IN (SELECT / * + parallel(ts,4) * / telcos_eligible te.dtv_acct_num you, telcos_setup ts, tp telcos_partners)
WHERE tp.telcos_name = UPPER ((p_telcos_name))
AND ts.partner_id = tp.partner_id
AND te.ts_id = ts.ts_id) LOOP


MERGE INTO tcs_accounts
WITH THE HELP OF)
SELECT / * + DRIVING_SITE (a) * / account_id, a.subscriber_id, status, account_type FROM account@tcs_to_paris an a.subscriber_id WHERE the = te_rec.dtv_acct_num
) paris_accounts
WE (tcs_accounts.subscriber_id = paris_accounts.subscriber_id)

WHEN MATCHED THEN
GAME UPDATE
account_type = paris_accounts.account_type,
subscriber_id = paris_acounts.subscriber_id,
status = paris_accounts.status
WHEN NOT MATCHED THEN
INSERT (account_id, subscriber_id, status_account_type)
VALUES (paris_accounts.account_id, paris_accounts.subscriber_id, paris_accounts.status, paris_accounts.account_type);



END LOOP;

END;

Can you let me know what is the problem here.

Thank you
MK.

>
WHEN NOT MATCHED THEN
INSERT (account_id, subscriber_id, status_account_type) - the problem here: STATUS_ACCOUNT_TYPE
VALUES (paris_accounts.account_id, paris_accounts.subscriber_id, paris_accounts.status, paris_accounts.account_type);
>

Comma after STATUS instead of underscore (_), otherwise, you have only three columns instead of four:
(.. STATUS, ACCOUNT_TYPE)

Tags: Database

Similar Questions

  • Error (11,15): PL/SQL: ORA-00913: too many values

    CREATE OR REPLACE TRIGGER TBI_POSCUSTXREF_IDU BEFORE INSERT OR UPDATE OR DELETE ON pos_cust_xref FOR EACH ROW 
      DECLARE 
      l_cod_action CHAR; 
      BEGIN 
      IF INSERTING THEN 
      l_cod_action := 'I'; 
      ELSIF UPDATING THEN 
      l_cod_action := 'U'; 
      ELSIF DELETING THEN 
      l_cod_action := 'D'; 
      END IF; 
      INSERT INTO at_pos_cust_xref VALUES (
      :new.DIST_NUMBER, 
      :new.DIST_BRANCH, 
      :new.DIST_NUMBER,                                                                                                                                                                                  
    :new.DIST_BRANCH    ,                                                                                                                                                                                                           
    :new.DAYS_PRICE_PROT    ,                                                                                                                                                                                    
    :new.TAPE_DAYS_PRICE_PROT ,                                                                                                                                                                                             
    :new.DAYS_IN_TRANSIT    ,                                                                                                                                                                                              
    :new.ACTIVE_IND    ,                                                                                                                                                                                                      
    :new.COMM_IND    ,                                                                                                                                                                                                         
    :new.SHORT_NAME   ,                                                                                                                                                                                               
    :new.SG_BILL_TO_CUST_NO   ,                                                                                                                                                                                           
    :new.TAPE_BILL_TO_CUST_NO   ,                                                                                                                                                                                               
    :new.SG_SHIP_TO_CUST_NO   ,                                                                                                                                                                                               
    :new.TAPE_SHIP_TO_CUST_NO  ,                                                                                                                                                                                                
    :new.NAME_FLAG           ,                                                                                                                                                                                                   
    :new.ADMIN_GLOBAL_ID   ,                                                                                                                                                                                                     
    :new.ZIP_CODE_PREFIX    ,                                                                                                                                                                                                     
    :new.DAILY_POS          ,                                                                                                                                                                                                         
    :new.PRIMARY_SALES_OUT   ,                                                                                                                                                                                                       
    :new.PRIMARY_COUNTRY_FLAG ,                                                                                                                                                                                                      
    :new.PRIMARY_START_DATE  ,                                                                                                                                                                                                          
    :new.CWAC_ID           ,                                                                                                                                                                                                      
    :new.COMMENT_ID        ,                                                                                                                                                                                             
    :new.LAST_UPD_BY       ,                                                                                                                                                                                                    
    :new.LAST_UPD_DATE      ,                                                                                                                                                                                                             
    :new.DESIGN_IN_IND       ,                                                                                                                                                                                                          
    :new.CLAIM_PROCESSOR     ,                                                                                                                                                                                                     
    :new.PRE_APPROVER_ID     ,                                                                                                                                                                                                     
    :new.CLAIMS_WITHIN_DAYS   ,                                                                                                                                                                                             
    :new.SG_AREA_CODE         ,                                                                                                                                                                                                    
    :new.CLAIM_TYPE          ,                                                                                                                                                                                                    
    :new.ART_APPROVER_ID     ,                                                                                                                                                                                                    
    :new.ACCT_PAY_ID          ,                                                                                                                                                                                                     
    :new.TAPE_ACCT_PAY_ID    ,                                                                                                                                                                                                      
    :new.POS_CORP_CODE        ,                                                                                                                                                                                                     
    :new.POS_CUST_NAME       ,                                                                                                                                                                                                    
    :new.POS_COUNTRY         ,                                                                                                                                                                                                     
    :new.POS_STREET_ADDR     ,                                                                                                                                                                                                     
    :new.POS_CITY           ,                                                                                                                                                                                                       
    :new.POS_STATE          ,                                                                                                                                                                                                       
    :new.POS_ZIP           ,                                                                                                                                                                                                        
    :new.INDIRECT_DISTI       ,                                                                                                                                                                                                         
    :new.ARCHIVE_DATE        ,                                                                                                                                                                                                             
    :new.CONT_CUST_EFFDATE    ,                                                                                                                                                                                                            
    :new.LSID                ,                                                                                                                                                                                              
    :new.POS_COUNTRY_CODE     ,                                                                                                                                                                                                   
    :new.SEGMENTATION         ,                                                                                                                                                                                                   
    :new.POS_STREET_ADDR2    ,                                                                                                                                                                                                     
    :new.INVENTORY_AUDIT_DATE ,                                                                                                                                                                                                            
    :new.PROCESS_REGION       ,                                                                                                                                                                                                      
    :new.CATEGORY_TYPE         ,                                                                                                                                                                                                   
    :new.OVERRIDE_ZIPCODE      ,                                                                                                                                                                                                    
    :new.OVERRIDE_COUNTRYCODE   ,                                                                                                                                                                                                    
    :new.OVERRIDE_COM_FLAG     ,                                                                                                                                                                                                     
    :new.POS_STREET_ADDR3     ,                                                                                                                                                                                                     
    :new.POS_STREET_ADDR4     ,                                                                                                                                                                                                   
    :new.POS_STREET_ADDR5     ,                                                                                                                                                                                                   
    :new.POS_STREET_ADDR6    ,                                                                                                                                                                                                    
    :new.POS_STATE_CODE         ,                                                                                                                                                                                                  
    :new.DIST_NUMBER_CE         ,                                                                                                                                                                                                  
    :new.SG_BILL_TO_CUST_NO_CE  ,                                                                                                                                                                                                  
    :new.DIST_NUMBER_RTL           ,                                                                                                                                                                                                
    :new.SG_BILL_TO_CUST_NO_RTL   ,                                                                                                                                                                                                 
    :new.DIST_NUMBER_MXO         ,                                                                                                                                                                                                 
    :new.SG_BILL_TO_CUST_NO_MXO    ,                                                                                                                                                                                               
    :new.SRP_CATEGORY            ,                                                                                                                                                                                                  
    :new.PTPP_DIST_NUMBER         ,                                                                                                                                                                                                 
    :new.BOOKED_REVENUE          ,                                                                                                                                                                                                
    :new.GROUP_DIST_NUMBER_ZYME       ,                                                                                                                                                                                             
    :new.ZYME_CUTOVER_DATA_DATE     ,                                                                                                                                                                                                     
    :new.DIST_TIMEZONE              ,                                                                                                                                                                                               
    :new.CURRENCY_CODE              ,                                                                                                                                                                                              
      systimestamp, 
      l_cod_action); 
      END; 
    Published by: user9093700 on March 7, 2012 11:58
    :new.DIST_NUMBER,
    :new.DIST_BRANCH,
    :new.DIST_NUMBER,
    :new.DIST_BRANCH,
    

    Why you insert DIST_NUMBER and DIST_BRANCH two times each? Remove each one and your problem will be solved.

  • Problems with Oracle sql developer

    Hello

    I have problems with my Oracle SQL developer 3.0.04 Version. It makes windows unstable once the query tries to display too many rows of data (for example, 300 k). Is there a way to solve this problem in addition to increasing the amount of physical memory? I currently have only 1 GB of RAM on this machine. Thank you.

    Hello

    Upgrading hardware can be a very satisfying experience, especially as it is almost always little expensive compared to the value of your time. Virtual memory / paging on the Windows and PC hardware is a huge disappointment, so more memory on Windows is a cure-all. With more and more common 64-bit operating systems, laptop computers and the PC is currently available with 8G of memory.

    That said, I think few users have a business case for the visualization of the hundreds of thousands of lines via a graphical user interface.

    Getting back to what concerns the management of memory in java, I want to put in a plug for the garbage and first new Garbage Collector. It will be the production in JDK 1.7, but can be found in the JDK 1.6 u14 & high in experimental option. The most recent revision update, the better it is. Just add something like this in your sqldeveloper.conf file:

    AddVMOption - XX: + UnlockExperimentalVMOptions
    AddVMOption - XX: + UseG1GC
    AddVMOption - XX: + G1YoungGenSize = 25 m
    AddVMOption - XX: + G1ParallelRSetUpdatingEnabled
    AddVMOption - XX: + G1ParallelRSetScanningEnabled

    It does a much better job of actually release unused memory in the context of the o/s.
    To learn more on this subject: http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html

    Gary Graham
    SQL DeveloperTeam

  • Problem with hierarchical query in function PL\SQL

    I have a simple table containing the ID of the parent

    -Create table

    create the table1 table:

    (

    ID NUMBER (12) not null,

    year number 4.

    month NUMBER (2),

    parent_id NUMBER (12)

    );

    -Create/recreate primary, unique and foreign key constraints

    change the table1 table:

    Add primary key constraint PK_TABLE1 (ID);

    change the table1 table:

    Add the foreign key constraint FK_TABLE1_PARENT (PARENT_ID)

    reference TABLE1 (ID);

    data:

    Insert into TABLE1 (id, year, month, parent_id)

    values (5, 2015, 12, 3);

    Insert into TABLE1 (id, year, month, parent_id)

    values (6 (2015), 12, 4);

    Insert into TABLE1 (id, year, month, parent_id)

    values (3 (2015), 11, 1);

    Insert into TABLE1 (id, year, month, parent_id)

    values (4 (2015), 11, 2);

    Insert into TABLE1 (id, year, month, parent_id)

    values (1, 2015, 10, null);

    Insert into TABLE1 (id, year, month, parent_id)

    values (2 (2015), 10, null);

    commit;

    and query

    with h as

    (select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t

    where t.year = 2015 and t.month = 12

    and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10

    connect by prior t.id = t.parent_id)

    Select * from:

    Join table1 t left t.id = h.parent_id;

    It works, but when I put this request in the procedure pl\sql

    create or replace procedure is get_report (p_cur_out on sys_refcursor)

    Start

    Open the p_cur_out for

    with h as

    (select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t

    where t.year = 2015 and t.month = 12

    and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10

    connect by prior t.id = t.parent_id)

    Select * from:

    Join table1 t left t.id = h.parent_id;             

    end get_report;

    /

    They do not compile. And in the fall, with the exception

    Errors of compilation for the PC of the PROCEDURE. GET_REPORT

    [Error: PL/SQL: ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], [], [], [], []]

    Online: 6

    Text: with h as

    Error: PL/SQL: statement ignored

    Online: 6

    Text: with h as

    My version of oracle

    1Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    2PL/SQL Release 11.2.0.3.0 - Production
    3CORE Production 11.2.0.3.0
    4AMT for Linux: Version 11.2.0.3.0 - Production
    5NLSRTL Version 11.2.0.3.0 - Production

    What is the problem with my request? Or database? How to solve this problem?

    If you have access to MOS, you can search the reason of it. If you are using left join syntax instead of joining ANSI, owner Oracle procedure compiles and returns the result.

  • Problem with oracle page OFA form parameter passing

    Dear all,

    I have a requirement as below

    I have a custom page of OAF I need call from a menu in the form of oracle, so I sm able to invoke the page in the menu but I need to move a form parameter to a page ofa form personlization, I am able to get the same thing, but my parameter contains date with time stamp, so when iam passing only day It works very well but with dtamp time it gives error like URL invalid because of some special character. So I found some links only when there is a space between the date and the time dtamp it gives question so please help me how I can handle this I need to get the date with timestamp in my page.

    Thank you

    Thanks for the reply,

    I solved the problem by using different functions through PL/SQL

  • Problem with Oracle Forms 11 g 2 on linux

    Dear all

    Here's the problem:

    • -J' installed Oracle Forms 11 GR 2 (11.1.2.2.0) on Linux from Oracle using the JDK 1.7.0_79 6.6
    • -J' solved all the problems and issues of the Arab reports.
    • -Now regarding the oracle forms now when I compile the FMAS on WINDOWS and move them to LINUX, they work very well except for forms that use WEBUTIL the form runs but WEBUTIL functions do not work
    • - So I tried to compile these forms on LINUX now WEBUTIL feature works, but all forms (with or without WEBUTIL) compiled under LINUX display this exception message before the race, here is the behavior:

    1. 1 - the form has a trigger CONNECTION on, but here's what's happening
      01.jpg
    2. 2. after pressing ok, it requires logon, and when I try to log displays the ORA-12705 as above and so on

      02.jpg
    3. 3. but after I click on cancel turns on and uses the trigger opening SESSION and works of good form

    Hope there is a solution for this.

    Best regards.

    The problem was because I was using a NLS_LANG that contains a space in the value and it is surrounded by quotes like NLS_LANG ='NLS_LANG ARABIC_SAUDI ARABIA. AR8MSWIN1256', which worked very well with reports.

    but it seems that the quotes were causing problems with forms,

    So I put NLS_LANG to the two forms and reports ARABIC_EGYPT reports.sh default.env. AR8MSWIN1256 OR ARABIC_AMERICA. AR8MSWIN1256

    both work well, now no NLS_LANG, error

    but the question of having to recompile the forms when moved to another server, who I thought he was still a known issue.

    Best regards.

  • Problem with Oracle performance

    Hi all

    I use Oracle database 11 g 2.

    I am facing a problem with one of my queries.


    Scenario is:
    I associate myself with 3 tables.
    The engine is saa_hist.saa_rep_product_activity (70 million lines).
    The second table is scmsa_hist.scmsa_sub_feature_trueup (900 million lines).
    The third table is saa_hist.saa_rep_subscriber_activity (35 million lines).

    The output of the query will be only about 120K.

    I'm majoriy of the columns in the first table. On the other hand, we get 2 columns and in table 3, we get a single column.

    When I join all 3 tables as it appears in the query runs for 6 hours. (The

    SELECT / * + PARALLEL_INDEX(R,SAA_REP_PRODUCT_ACTIVITY_BI,12)
    PARALLEL(SUB,24)
    PARALLEL_INDEX(RR,SAA_REP_SUBSCRIBER_ACTIVITY_I1,8)

    */
    R.*, sub.mrc, sub. RATEPLANCODE, rr.measure_group_id
    Saa_hist.saa_rep_product_activity r
    JOIN scmsa_hist.scmsa_sub_feature_trueup sub
    ON sub.job_log_id = r.job_log_id
    AND sub.service_number = r.msisdn
    AND sub.ban = r.account_number
    AND sub.soc_code = r.product_id_code
    LEFT OUTER JOIN saa_hist.saa_rep_subscriber_activity rr
    ON rr.quantity = 1
    AND rr.service_universal_id = r.service_universal_id
    AND rr.msisdn = r.msisdn
    AND rr.account_number = r.account_number
    WHERE r.billing_subsystem_id = 1
    AND 1 = 1
    AND r.batch_key BETWEEN 674 AND 675;

    The explain command plan looks good for this one and the cost is also okay(222K). I don't see any S-> data flow in the Section of IN-OUT of the explain plan P.

    -----------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | TQ | IN-OUT | PQ Distrib.
    -----------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT |
    | 1. COORDINATOR PX |
    | 2. PX SEND QC (RANDOM). : TQ10001 | Q1, 01 | P > S | QC (RAND) |
    | 3. NESTED EXTERNAL LOOPS | Q1, 01 | SVCP |
    | 4. HASH JOIN | Q1, 01 | SVCP |
    | 5. JOIN FILTER PART CREATE | : BF0000 | Q1, 01 | SVCP |
    | RECEIVE 8 2 PX | Q1, 01 | SVCP |
    | 7. PX SEND LOCAL BROADCAST | : TQ10000 | Q1 00 | P > P | BCST LOCAL |
    | 8. PX HASH PARTITION ALL | Q1 00 | ISSUE |
    | 9. TABLE ACCESS BY LOCAL INDEX ROWID | SAA_REP_PRODUCT_ACTIVITY | Q1 00 | SVCP |
    | 10. CONVERSION OF BITMAP IN ROWID | Q1 00 | SVCP |
    | 11. BITMAP INDEX RANGE SCAN | SAA_REP_PRODUCT_ACTIVITY_BI | Q1 00 | SVCP |
    | 12. FILTER-HASH PARTITION PX JOIN | Q1, 01 | ISSUE |
    | 13. TABLE ACCESS FULL | SCMSA_SUB_FEATURE_TRUEUP | Q1, 01 | SVCP |
    | 14. RANGE OF PARTITION ALL THE | Q1, 01 | SVCP |
    | 15. HASH PARTITION ALL | Q1, 01 | SVCP |
    | 16. TABLE ACCESS BY LOCAL INDEX ROWID | SAA_REP_SUBSCRIBER_ACTIVITY | Q1, 01 | SVCP |
    | 17. INDEX RANGE SCAN | SAA_REP_SUBSCRIBER_ACTIVITY_I1 | Q1, 01 | SVCP |
    -----------------------------------------------------------------------------------------------------------------

    But when I joined the first two tables and run as shown below, the request is get executed in 13 Minutes.

    SELECT / * + PARALLEL_INDEX(R,SAA_REP_PRODUCT_ACTIVITY_BI,12)
    PARALLEL(SUB,24)
    */
    R.*, sub.mrc, sub. RATEPLANCODE, rr.measure_group_id
    Saa_hist.saa_rep_product_activity r
    JOIN scmsa_hist.scmsa_sub_feature_trueup sub
    ON sub.job_log_id = r.job_log_id
    AND sub.service_number = r.msisdn
    AND sub.ban = r.account_number
    AND sub.soc_code = r.product_id_code;

    Therefore, I created a temporary table with this data and made a left outer join with the other 3 table. It runs a few seconds and I can say all the data I am able to take less than 15 minutes to 6 hours.

    So my question is that why Oracle is a strange behavior.

    I tried all approaches to avoid this kind of behavior methods but unable to produce the same thing as how I did in the second approach.

    For example, I joined the first two tables and use NO_MERGE hint with the third table and always NO_MERGE, PUSH_PRED's not going anywhere. I tried Inline view and it doesn't give me any improvement in performance.
    I'm tempted to do it using WITH Clause with two tables and then joined the data set with the third table. But still does not.
    I tried hint ORDINATE and yet so big difference.
    I even tried to force some clues which are presentm, but the 50Million cost ranges from 200K.
    I think I'm exhausted all the possibilities.

    I'd appreciate any Oracle guru can help me what is the issue.

    Thank you
    NKM

    You could start trying to impose (with extensive predicates) what you discover or believe work better.
    In this case I usually found the ansi syntax not useful and often the optimizer ignore my intentions:(mais il n'y a pas de mal essayer)

    select x.*,
           rr.measure_group_id
      from (select r.*
                   sub.mrc,
                   sub.rateplancode,
              from (select *
                      from saa_hist.saa_rep_product_activity
                     where billing_subsystem_id = 1
                       and batch_key between 674 and 675
                   ) r,
                   scmsa_hist.scmsa_sub_feature_trueup sub
             where sub.job_log_id = r.job_log_id
               and sub.service_number = r.msisdn
               and sub.ban = r.account_number
               and sub.soc_code = r.product_id_code
           ) x,
           (select service_universal_id,
                   account_number,
                   msisdn,
                   measure_group_id
              from saa_hist.saa_rep_subscriber_activity
             where quantity = 1
           ) rr
     where x.service_universal_id = rr.service_universal_id(+)
       and x.msisdn = rr.msisdn(+)
       and x.account_number = rr.account_number(+)
    

    Concerning

    Etbin

  • Problems with oracle enterprise Manager manager

    Hello

    Hello

    I have a database with SID mdok and host: mdok.lubelskie.pl. I copied the database to a different server host: oracle.lubelskie.pl with the same SID mdok

    I had problems with EM starting on oracle.lubelskie.pl so I run the emca - dbcontrol db config command and entered the correct values.

    Now EM starts ok and when I go to http://oracle.lubelskie.pl:1158 / em it asks for the connection. I enter the connection information and connect to the mdok database.

    Here's the info to state when I get http://oracle.lubelskie.pl:1158 / em:

    Status of
    Upward since 11-03 - 2010 20:59:27 THIS
    Instance name mdok
    Version 10.2.0.1.0
    Home mdok.lubelskie.pl
    LISTENER_mdok.Lubelskie.pl listener

    The problem, that of why he connects to the host mdok.lubelskie.pl and not in the good pair hence the EM a was started (oracle.lubelskie.pl). How to solve the problem?

    The best would be to recreate the repository. There are files in which this info is maintained but better would be to delete and re-create the repoistory em using the

    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create
    

    HTH
    Aman...

  • AMT problem with Oracle 11 g ODAC 11.1.0.6.21 with Oracle Developer Tools

    I installed the full
    Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio

    now I'm in the good old ' [ORA-12154: TNS: could not resolve the connect identifier specified] "error.

    I copied the tnsnames.ora even as that used on the db Server
    on the client 'C:\Oracle\product\11.1.0\client_2\Network\Admin '.
    The host name is just like a normal ping works. TNSping is not available.
    but I get the [ORA-12154: TNS: could not resolve the connect identifier specified] error.
    The listener is running and the instance as well since everything works on the source server.


    I tried with

    SET path=c:\oracle\product\11.1.0\client_2\bin

    but tnsping is still not recognized.

    sqlplus works however when I put in
    SET path=c:\oracle\product\11.1.0\client_2\


    What is going on...

    Hello

    No, actually, I mean try including your IP in tnsnames as

    CONTROL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = **)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = Control)
    )
    )
    

    and then, try, you can also try SQLNET.authentication = (NONE), also make sure you provide safely

    HTH

    Thanks and greetings
    VD

  • PL/SQL: ORA-00947: not enough values error message

    Hi all I get Error (25.63): PL/SQL: ORA-00947: not enough error message values when executing after the insert statement. I am new to Oracle SPs, if someone could help me solve the problem.

    Insert in estimate (ID, mValue) values ('select (where pm.ID is null then 10))
    of other pm.ID
    End ID), m1.mID, (case when mValue < 1 and m1.mID in (1.7))
    then mValue * 100
    of another mValue
    mValue end) of
    Scott. Left outer join METRICS m1
    Scott. (PROJECTMETRIC h m1.mID = pm.ID and pm.ID = 10)');

    The syntax to insert rows into a table of a subquery is as follows:

    insert into table (col1, col2, ...)
    select ... , ..., ....
    from ..., ....
    where ....
    /
    
  • Problems with Oracle 11g R2 XE

    Hi guys,.

    I had a problem and have to solve for abt a week now and tried a lot of solutions.

    My environment:

    Windows 7 Professional SP 1 64-Bit

    AMD Phenom II x 4 940 @3.0 GH

    4 GB of RAM (in use during the installation of 40%)

    The Windows Firewall is enabled (but oracle.exe and lstnr.exe are configured as an exception)

    Avast! FREE Antivirus Version 2014.9.0.2018

    Installation (both times with the same result):

    Installed O 11g 64-Bit XE in two different ways:

    I was logged in with user lies in Admingroup

    Installation started via right click with administrationprivileges

    I activated the Administrators account and logged with adminprivileges.

    After that, I installed the 11g XE 64 bit

    between the two steps I cleaned and restarted my system, register was too empty and the file has been deleted manually

    as a first step, I get this problem: Windows cannot find " " http://127.0.0.1:%HTTPPORT%/Apex/f?p=4950 "

    -> Manually changing HTTPORT % to 8080

    -> now I could double-click the shortcut, Firefox/IE/Chrome opens but 404 not Found error is returned

    -XracleXETNListener OracleServiceXE, both are running

    [code]

    C:\Windows\System32 > lsnrctl status

    LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on November 4, 2014 18:02

    : 56

    Copyright (c) 1991, 2014, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))

    AMT-12541: TNS:no listener

    AMT-12560: TNS:protocol adapter error

    AMT-00511: no listener

    Windows 64-bit error: 2: no such file or directory

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = D³rsinKurt-PC)(PORT=1521)

    )))

    STATUS of the LISTENER

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

    Alias LISTENER

    TNSLSNR for Windows 64-bit version: Version 11.2.0.2.0 - Prod

    ction

    Start date November 4, 2014 13:53:50

    Uptime 0 days 4 h 9 min 9 s

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener log file C:\oraclexe\app\oracle\diag\tnslsnr\D³rsinKurt-PC\list

    ener\alert\log. XML

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = D³rsinKurt-PC)(PORT=1521)))

    The listener supports no services

    The command completed successfully

    [/ code]

    If Listenerservice is up and running, but I can't find the http Service 8080 with netstat-a

    so I started to study a little more:

    Registryfolder: HK_LOCAL_MACHINE\SOFTWARE\ORACLE is installed

    following subdirectories are installed: KEY_XE, ODP.NET, OracleMTSRecoveryService

    What I tried (both ways, with and without adminstrationprivileges):

    I created two new DWORD values in KEY_XE ORACLE_SID_AUTOSTART and - STOP both to true and stopped and started services, nothing changes.

    Inserted the two users (Administrator and normal user) in the Group ORA_DBA, nothing changes, even tried to set and the new

    you wanted to connect to sqlplus using the console:

    C:\Windows\System32 > sqlplus system

    SQL * more: Production version 11.2.0.2.0 on 4 Nov 18:09:21 Di 2014

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

    Enter the password:

    ERROR:

    ORA-01034: ORACLE not available

    ORA-27101: shared memory realm does not exist

    Process ID: 0

    Session IDs: serial number 0: 0

    Enter the user name:

    When I start directly at the sqlplus prompt and write the start of the command I got the following msg: ORA-01031: insufficient privileges

    I looked in the folder ORA_BASE and looked at the oradat file, it contains a XE-folder that is empty, the admin folder contains: XE / and adump, dpdump and pfile, all three are empty (what does this mean? No DB created at all?)

    I looked at the file ORA_HOME and found initXE.ora, oradba.exe, oradim and PWDXE.ora

    I looked in the oradim.txt log:

    Kills Nov 04 11:21:17 2014

    C:\oraclexe\app\oracle\product\11.2.0\server\bin\oradim.exe-arret-SID xe - usrpwd * - immediate shutmode - log oradim.log

    Kills Nov 04 11:21:55 2014

    ORA-01012: not connected

    Kills Nov 04 11:23:01, 2014

    C:\oraclexe\app\oracle\product\11.2.0\server\bin\oradim.exe-demarrage-SID xe - usrpwd * - log oradim.log - nocheck 0

    Kills Nov 04 11:23:38 2014

    ORA-01078: failure in the treatment of system settings

    ORA-01565: error in the identification of the file "C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora".

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) Das System kann die angegebene Datei nicht find.

    -> bingo, 1st question: there is no spfileXE.ora, how can I create it? more in the dbs-file there is only an init.ora and not initXE.ora?

    Looked in the log-file files 5 from clscX.txt (probably after each systemreboot? containing the following):

    Oracle Database 11g Clusterware Release 11.2.0.2.0 - Production Copyright 1996, 2010 Oracle. All rights reserved.

    2014-11-04 - 13:53:52.197: [5576] [default] ut_read_reg:2:ocr SOFTWARE\Oracle\olr registry key cannot be opened. error 2

    [DESTROYED] clse_get_crs_home [5576]: error recovery configuration OLR [0] [error opening of the olr registry key. The system could not find the file.

    ]

    -> SystemLanguage is German, so I translated the German parts, perhaps he was lost in the translation of sth

    -> 2nd question: is there a missing registry key?

    In addition, I looked at the ORACLE_HOME/server/config/home cloesly folder:

    cloneDBCreation:

    SQL > Create controlfile reuse database "XE" value

    2 MAXINSTANCES 8

    MAXLOGHISTORY 3 1

    MAXLOGFILES 16 4

    5 MAXLOGMEMBERS 3

    6 MAXDATAFILES 100

    DataFile 7

    8 "C:\oraclexe\app\oracle\oradata\XE\system.dbf"

    9 "C:\oraclexe\app\oracle\oradata\XE\undotbs1.dbf."

    10 "C:\oraclexe\app\oracle\oradata\XE\sysaux.dbf."

    11 'C:\oraclexe\app\oracle\oradata\XE\users.dbf '.

    LOGFILE 12

    13 GROUP 1 SIZE 51200K,

    14 GROUP 2 SIZE 51200K,

    15 RESETLOGS;

    SP2-0640: not connected

    SQL > exec dbms_backup_restore.zerodbid (0);

    SP2-0640: not connected

    SP2-0641: "EXECUTE" requires the connection to the server

    SQL > shutdown immediate;

    ORA-01012: not connected

    "SQL > startup nomount pfile="C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\initXETemp.ora ";

    ORA-01031: insufficient privileges

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

    CloneRmanRestore:

    "SQL > startup nomount pfile="C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\init.ora ";

    ORA-01031: insufficient privileges

    SQL > @C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\rmanRestoreDatafiles.sql;

    SQL > set off echo;

    SP2-0640: not connected

    SP2-0640: not connected

    SP2-0640: not connected

    ERROR:

    ORA-01031: insufficient privileges

    SQL > spool C:\oraclexe\app\oracle\product\11.2.0\server\config\log\cloneDBCreation.log

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

    PostDBCreation:

    QL > Connect "SYS" / "' * ' as SYSDBA"

    ERROR:

    ORA-01031: insufficient privileges

    SQL > set echo on

    SQL > //create or replace directory DB_BACKUPS as 'C:\oraclexe\app\oracle\fast_recovery_area ';

    SP2-0103: nothing in the SQL buffer to run.

    SQL > start

    2 dbms_xdb.sethttpport('8080');

    3 dbms_xdb.setftpport('0');

    4 end;

    5.

    SP2-0640: not connected

    SQL > create spfile='C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora 'FROM pfile='C:\oraclexe\app\oracle\product\11.2.0\server\config\scripts\init.ora ';

    SP2-0640: not connected

    SQL > shutdown immediate;

    ORA-01012: not connected

    SQL > connect "SYS" / "' & & sysPassword ' as SYSDBA"

    ERROR:

    ORA-01031: insufficient privileges

    .

    .

    .

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

    SQL > @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\dbmssml.sql;

    SP2-0310: cannot open the file 'C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\dbmssml.sql '.

    SQL > @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\dbmsclr.plb;

    SQL > DROP PUBLIC DATABASE LINK DBMS_CLRDBLINK;

    SP2-0640: not connected

    SQL > CREATE the PUBLIC DATABASE LINK DBMS_CLRDBLINK with the HELP of "ORACLR_CONNECTION_DATA";

    SP2-0640: not connected

    SQL > CREATE or REPLACE LIBRARY wrapped ORACLECLR_LIB

    2 a000000

    1 of 3

    4 abcd

    5-abcd

    6 abcd

    7 abcd

    8 abcd

    9 abcd

    10 abcd

    11-abcd

    12 abcd

    13 abcd

    14 abcd

    ABCD 15

    ABCD 16

    17 abcd

    18 abcd

    19 16

    20 51 8 d

    21 L/XXXXXXXXXX...

    XXXXXXX 22...

    23

    24.

    SP2-0640: not connected

    SQL > DROP TYPE DBMS_CLRParamTable;

    SP2-0640: not connected

    SQL > DROP TYPE DBMS_CLRType;

    SP2-0640: not connected

    SQL > CREATE or REPLACE TYPE wrapped DBMS_CLRType

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

    XE:

    The created instance.

    So I hope this is enough information

    Thanks in advance

    Dursin Kurt

    OK guys I found:

    Problem is the XE.bat - Script could not add me to the ORA_DBA group.

    Reason: my Computername and username, both had a mutation of the vowel 'u '.

    Why it has not worked to my laptop computer company too have both my 'U' in the username

    solved!

  • problems with access to V$ SQLAREA, V$ SQL, V$ SQLTEXT and V$ SQL_PLAN

    Hello

    I created a new user account and granted it s/n.
    I logged this account and I am trying to run select statements on V$ SQLAREA, V$ SQL, V$ SQLTEXT and V$ SQL_PLAN, but I'm

    ORA-00942: table or view does not exist
    00942 00000 - "table or view does not exist.

    However, I can get into these views with the SYSTEM.

    I loged in the system and tried to grant

    Grant select on V$ SQLTEXT to user_name;

    SQL error: ORA-01031: insufficient privileges
    01031 00000 - "insufficient privileges".
    * Cause: An attempt was made to change the user name or password
    without the privilege appropriate. This error also occurs if
    trying to install a database without the need for employment
    access privileges.

    now, I know that I don't have to change password, nor trying to install the new database.

    I'm runnning Oracle XE and the views are


    OBJECT_NAME OBJECT_TYPE OWNER STATUS
    ------------------------------ ------------------- ------- ------------------------------ -------
    V$ SQL_PLAN VALID VALID PUBLIC SYNONYM
    V$ SQLAREA VALID VALID PUBLIC SYNONYM
    V$ SQLTEXT VALID VALID PUBLIC SYNONYM
    V$ SQL VALID VALID PUBLIC SYNONYM


    Where is the problem?

    Thanks in advance for any effort

    Hi Jana,

    Could you please the Version of Oracle. I test and it works. Quick glance:

    $ sqlplus / as sysdba
    
    SQL*Plus: Release 10.2.0.3.0 - Production on Jue Jul 29 13:57:32 2010
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> select granted_role
      2  from dba_role_privs
      3  where grantee='TJ';
    
    GRANTED_ROLE
    ------------------------------
    CONNECT
    RESOURCE
    PLUSTRACE
    
    SQL> conn tj/tj
    Connected.
    SQL> select * from v$sql;
    select * from v$sql
                  *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    
    SQL> conn / as sysdba
    Connected.
    SQL> grant dba to tj;
    
    Grant succeeded.
    
    SQL> conn tj/tj
    Connected.
    SQL> select count(8) from v$sql;
    
      COUNT(8)
    ----------
          1354
    
    SQL> select count(8) from v$sqlarea;
    
      COUNT(8)
    ----------
          1206
    
    SQL> select count(8) from v$sql_plan;
    
      COUNT(8)
    ----------
          7464
    
    SQL> select count(8) from v$sqltext;
    
      COUNT(8)
    ----------
         11425
    

    John

  • Problem with oracle jdbc driver 10.2.0.4 p-6396242

    Hello
    We organize a Webapplication on Tomcat 5.5.27 (jdk 1.5.0_16)
    and Oracle 10.2.0.4 p-6396242 (implicit and explicit statement caching disabled)

    We use apache commons-dbcp connectionPooling - 1.2.2 Commons-pool - 1.5.4.

    In a generic module of the application, a lot of dynamic sql statements are created and run.
    Most States are quite unique and one-time (no bind variable used).
    Of course, it is not a very usual way to make all the statements without using binding. It's an older infrastructure of the client, which may not be replaced at this time.

    The problem is as follows:

    When you run a mutation of the mass of data, the jvm memory usage gets more or less straight, on 250meg per minute, which translates into an OutOfMemoryException.
    I checked every connection, the declaration and the result set to get closed... everything is fine.
    In jProfiler I see where the memory is used, but it is foolish to real to me.

    In each T4CConnection the 'statements' property contains a linkedList of T4CPreparedStatement bodies and the list is bigger and bigger and of course, the gc does not collect anything, since they are all referenced by linkedList.

    Someone at - it an idea, what could be the problem in this case?
    What exactly is T4CConnection.statements, I mean that is it for? And why are the statements may lie in T4CConnection.statements?

    Thank you very much
    Best regards, Andreas

    You have to DatabaseMetaData #getPrimaryKeys () calls in your code. Search it is correct closing ResultSet.

  • Connection problem with oracle RAC

    Hello everyone I have a CAR with 2 knots when I try to log in sometimes I have a problem, after a few ok conections, this is the output:
    SQL * more: release 9.2.0.1.0 - Production on Mon 5 Oct 11:43:13 2009

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

    ERROR:
    ORA-12545: Connect failed because target host or object does not exist

    This the tnsnames to the customer

    DBTEST2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = mxcpm9kh1407dc1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP) (HOST = mxcpm9kh1102dc1-vip)(PORT = 1521))
    )
    (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = dbtest2)
    (FAILOVER_MODE = (TYPE = SELECT) (METHOD = BASIC))
    )
    )
    ********************************************************+
    and in the servet db, it's the tnsnames
    DBTEST22 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = mxcpm9kh1102dc1-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dbtest2)
    (INSTANCE_NAME = dbtest22)
    )
    )

    DBTEST21 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = mxcpm9kh1407dc1-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dbtest2)
    (INSTANCE_NAME = dbtest21)
    )
    )

    LISTENERS_DBTEST2 =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = mxcpm9kh1407dc1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP) (HOST = mxcpm9kh1102dc1-vip)(PORT = 1521))
    )

    There might be a possibility that the listener is losing the database service, please check the listener services, the database is registered with the listener. Try to set the local_listener and remote_listener parameters. To connect to the RAC database to create a Service for the database in DBCA.

    Surely, this will solve your problem.

    Best regards
    Amit Grover

  • Problem with Oracle 12 c Enterprise Manager

    Hello

    Recently, I installed Oracle Linux Server release 7.2 on a virtual machine. I then installed Oracle 12 c SE2 but for the life of me I can't get Enterprise Manager to work. When I type the address it is to say. https://***:5500/em, all I have is that the page cannot be displayed. I tried to use different browsers... no luck. Database is running, and if I check the status of the listener I get the following result.

    LSNRCTL for Linux: Version 12.1.0.2.0 - Production on February 17, 2016 08:19:11

    Copyright (c) 1991, 2014, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=***) (PORT = 1521) (IP = v4_only)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production
    Start date February 17, 2016 08:18:50
    Availability 4 days 1 hour 2 minutes 21 seconds
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Parameter Listener of the /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora file
    The listener log file /U01/app/Oracle/diag/tnslsnr/***/listener/alert/log.XML
    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=***) (PORT = 1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL =)(HOST=***) (PORT = 5500) CST) (Security = (my_wallet_directory = / u01/app/oracle/admin/orclvm/xdb_wallet)) (Presentation = HTTP)(Session=RAW))
    Summary of services...
    Service 'orclvm' has 1 instance (s).
    'Orclvm' instance, State LOAN, has 1 operation for this service...
    Service 'orclvmXDB' has 1 instance (s).
    'Orclvm' instance, State LOAN, has 1 operation for this service...
    The command completed successfully

    I also tried using different not ports... no luck. I tried to uninstall and reinstall the database... no luck.

    I check the ports in sqlplus and I get the following output...

    Connected to:
    Database Oracle 12 c Standard Edition Release 12.1.0.2.0 - 64 bit Production

    SQL > select dbms_xdb_config.gethttpsport (double);

    DBMS_XDB_CONFIG. GETHTTPSPORT()
    ------------------------------
    5500

    SQL > select dbms_xdb_config.gethttpport (double);

    DBMS_XDB_CONFIG. GETHTTPPORT()
    -----------------------------
    0

    I check the address and I get...

    SQL > SELECT ' https://'|| SYS_CONTEXT ('USERENV', 'SERVER_HOST') |': ' | dbms_xdb_config.gethttpsport () | "/em/' double;

    ' HTTPS: / /' | SYS_CONTEXT ('USERENV', 'SERVER_HOST') |'. ' || SYS_CONTEXT (' USERENV ',' DB ")

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

    https://***:5500/em/

    I also ran the Edit the system registry command in sqlplus so exec dbms_xdb_config. sethttpport (5500 ( ) with no luck.


    I checked, double checked and triple checked about every thing and still can't get 'EM to work. Help, please!


    TIA

    That would explain why you can't connect. Failed to open the port on the remote system. It's a typical situation when a firewall is not blocking the communication. It could also be that your browser is configured to use a web proxy, or that a network firewall blocking the communication.

Maybe you are looking for