Using DB_RECOVERY_FILE_DEST and LOG_ARCHIVE_DEST - error ORA-16019
HelloMy database is currently configured to write files archivelog on two sites: / u01/app/oracle/archivelogs (which is the log_archive_dest parameter and is ranked number 1) and USE_DB_RECOVERY_FILE_DEST (10), which is
under/u01/app/oracle/flash_recovery_area. I want to spend the two locations for separate discs.
When I attempt to move or the other, I get the following errors:
SQL > ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = ' / u03/fra/MYDB/flash_recovery_area "SCOPE = BOTH;
ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = ' / u03/fra/MYDB/flash_recovery_area "SCOPE = BOTH
*
ERROR on line 1:
ORA-02097: the parameter cannot be changed because specified value is not valid
ORA-16019: cannot use db_recovery_file_dest with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST
SQL > alter system set log_archive_dest = "/ u02/archive/MYDB";
ALTER system set log_archive_dest = "/ u02/archive/MYDB '.
*
ERROR on line 1:
ORA-02097: the parameter cannot be changed because specified value is not valid
ORA-16018: cannot use LOG_ARCHIVE_DEST with LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST
Any ideas?
Thanks for any help.
cool, finally you got. Thanks for pasting of output.
Barry K.
Tags: Database
Similar Questions
-
Execute Immediate with DOF and TABLE() - error ORA-22905
Hello
I have a problem trying to use a user defined the Type of the Table in a statement Execute Immediate containing a CREATE TABLE statement.
Is there no work around for this problem?
The actual code for the SELECT * OF TABLE(:T) is dynamic and slow. That's why I try to avoid to create/fill the table in two steps (as does with MY_TABLE1). Also, in this case, I can't use SELECT * but must specify all the columns (amount variable and over 100 columns).
CREATE TYPE MY_TABLE_TYPE AS TABLE OF VARCHAR2(30); / DECLARE MT MY_TABLE_TYPE; BEGIN SELECT * BULK COLLECT INTO MT FROM DUAL; -- Two steps EXECUTE IMMEDIATE 'CREATE TABLE MY_TABLE1 (A VARCHAR2(30))'; EXECUTE IMMEDIATE 'INSERT INTO MY_TABLE1 SELECT * FROM TABLE(:T)' USING MT; -- OK -- One step EXECUTE IMMEDIATE 'CREATE TABLE MY_TABLE2 AS SELECT * FROM TABLE(:T)' USING MT; -- ERROR ORA-22905 END; /
byee
Andrea
In my view, the error message is incorrect or the less misleading. Bind variables cannot be used in DDL:
SQL > declare
2 number of v_var: = 99;
3. start
4 run immediately "' create the my_table2 in select table: double T" using v_var; "
5 end;
6.
declare
*
ERROR on line 1:
ORA-01027: bind variable not allowed for data definition operations
ORA-06512: at line 4 levelSQL >
What you could do is use the package variable:
SQL > CREATE OR REPLACE
2 PACKAGE PKG1
3 EAST
4 MT MY_TABLE_TYPE;
5 FUNCTION GET_MT
6 RETURN MY_TABLE_TYPE;
7 END;
8.Package created.
SQL > CREATE OR REPLACE
PACKAGE 2 BODY PKG1
3 EAST
4 GET_MT FUNCTION
5 RETURN MY_TABLE_TYPE
6 EAST
7. START
8 RETURN MT;
9 END;
10 END;
11.Package body created.
SQL > DROP TABLE MY_TABLE1 PURGE
2.Deleted table.
SQL > DROP TABLE MY_TABLE2 PURGE
2.
DROP TABLE MY_TABLE2 PURGE
*
ERROR on line 1:
ORA-00942: table or view does not existSQL > START
2. SELECT * BULK COLLECT INTO PKG1.MT FROM DUAL;
3 - two steps
4 RUN IMMEDIATELY "CREATE TABLE MY_TABLE1 (A VARCHAR2 (30))';"
5 IMMEDIATELY EXECUTE "INSERT INTO MY_TABLE1 SELECT * FROM TABLE (PKG1." GET_MT)';
6 - one step
7 IMMEDIATE EXECUTION "CREATE TABLE MY_TABLE2 AS SELECT * FROM TABLE (PKG1." GET_MT)';
8 END;
9.PL/SQL procedure successfully completed.
SQL > select * from my_table1;
A
------------------------------
XSQL > select * from my_table2;
COLUMN_VALUE
------------------------------
XSQL >
SY.
-
My select statement fails with the error:
The ORA-19011 string buffer too small
The select statement looks like:
SELECT TO_CLOB)
XMLELEMENT ("accounts",
XMLELEMENT ("count",
XMLATTRIBUTES)
rownum AS "recordId."
To_date('20130520','YYYYMMDD') AS "datestarted."
123456 AS "previousBatchId."
56789 AS 'previousRecordId '.
),
....
.... .
.....
XMLFOREST)
SIG_ROLE AS "SignatoryRole."
To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."
NVL(Reason,0) AS 'reason '.
) AS the 'transfer '.
)
()) AS CRDTRPT
OF ANY_TABLE;
- It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)
I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.
NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES
No UTL_FILE
I need to use the REEL spool the resulting XML data of the SELECT query.
SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)
What I do is:
- a column of type CLOB to a xml_report of the loading of the above SELECT query table
- Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml
No need of XMLTYPE data behind. Xml data stream is fine for me.
In addition, I need to validate the XML file, also using XSD.
Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.
Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
A Suggestion or a solution to this problem would be appreciated.
(Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)
Bravo!
Rahul
It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)
You use the right method.
There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.
To serialize XMLType to CLOB, use the XMLSerialize function:
SELECT XMLSerialize (DOCUMENT
XMLELEMENT ("accounts",
...
)
)
OF ANY_TABLE;
For the rest of the requirement, I wish you good luck trying to spool the XML correctly.
You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.
-
Hi all
your help is greatly appreciated...
Calling B.fucntion inside an A.fonctions to insert data into a table.
Here when you call the B.fucntion to insert data in the table... receiver AM a mistakeOmitted in B - SQL Error: ORA-14551: cannot perform a DML operation inside a query...
Can someone please help me to clarify this...
The FUNCTION A(varUPD_TYPE IN VARCHAR2) RETURN VARCHAR2 IS
varRETURN_VALUE VARCHAR2 (25): = NULL;numALLOWED_COUNT PROD. PROCESS_COUNTER. TYPE % ALLOWED_COUNT;
numLAST_COUNT_ADDED PROD. PROCESS_COUNTER. TYPE % LAST_COUNT_ADDED;
dtCHANGE_DATE DATE: = NULL;
varSTMT VARCHAR2 (2000);
bln_Allowed BOOLEAN;
myVar VARCHAR2 (32767).
BEGINIF varUPD_TYPE = "A" THEN
BEGIN
SELECT CH_DATE, LAST_COUNT_ADDED, ALLOWED_COUNT
IN dtCH_DATE, numLAST_COUNT_ADDED, numALLOWED_COUNT
PROD. PROCESS_COUNTER
WHERE NOM_PROCESSUS = "DAILY".
AND COUNTER_IND = A 'IF dtCH_DATE < = trunc (sysdate) THEN
numLAST_COUNT_ADDED: = 0;
END IF;EXCEPTION
WHILE OTHERS THEN
numLAST_COUNT_ADDED: = 0;
numALLOWED_COUNT: = 1;
END;
IF numALLOWED_COUNT > = numLAST_COUNT_ADDED + 1 THEN
bln_Allowed: = True;
varSTMT: = "UPDATE PROD. TMS_PROCESS_COUNTER ';
varSTMT: = varSTMT | ' SET last_count_added = ' | (numLAST_COUNT_ADDED + 1);
varSTMT: = varSTMT | "WHERE nom_processus =" DAILY "';
varSTMT: = varSTMT | "AND COUNTER_IND ="D"';
IF varSTMT IS NOT NULL
THEN
MyVar: = B(96,varSTMT);
PROC_LOG (' CALL B ': myVar);
IF myvar > 0 THEN
NULL;
END IF;
END IF;
On the other
End if;END IF;
EXCEPTION WHEN OTHERS THEN
PROC_LOG ("A failed '");
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS A NULL VALUE.
PUT AN END TO;The FUNCTION B(numTABLE_ID IN NUMBER, varSQL_STATEMENT IN VARCHAR2) RETURNS NUMBER IS
varINSERT_BATCH_STMT VARCHAR2 (32767): = NULL;
varADD_REC_TYPE BATCH_TABLES. TYPE % ADD_REC_TYPE;BEGIN
INSERT INTO BATCH_STATEMENT (ID, TABLE_ID, STATEMENT, QUEUE_SEQUENCE_ID)
VALUES (Numidian, numTABLE_ID, varSQL_STATEMENT, 1);EXCEPTION WHEN OTHERS THEN
PROC_LOG ('B failed');
PROC_LOG (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END B;
Structure of the Batch_statement table:
ID Number (15) not null
number (2) not null table_id
Statement varchar2 (4000) not null
Queue_sequence_id number (5) not nullWhy do you do such coding mess full of bad practices.
Remove the exceptions WHEN OTHERS, you're a turing a mistake in this way, they are bugs and (never) use functions to perform DML.
Functions are not intended for DML. Period.
-
Sending a message using UTL_SMTP, get the error ORA-29278: SMTP temporary error
Hi all
I try to send mail from oracle plsql. for that I use the below mode operative but unfortunately not able to move forward.
procedure isSQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production
call you as followsCREATE OR REPLACE PROCEDURE send_mail (p_to IN VARCHAR2, p_from IN VARCHAR2, p_message IN VARCHAR2) AS l_mail_conn UTL_SMTP.connection; l_reply utl_smtp.reply; l_smtp_host VARCHAR2(50) := 'smtp.gmail.com:25'; l_smtp_port NUMBER := 25; BEGIN l_mail_conn := UTL_SMTP.open_connection(l_smtp_host, l_smtp_port); utl_smtp.EHLO(l_mail_conn, l_smtp_host); utl_smtp.command(l_mail_conn, 'AUTH LOGIN'); utl_smtp.command(l_mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('[email protected]')))); utl_smtp.command(l_mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('mypwd')))); l_reply :=UTL_SMTP.mail(l_mail_conn, p_from); dbms_output.put_line( l_reply.code || ' ' || l_reply.text ); UTL_SMTP.rcpt(l_mail_conn, p_to); UTL_SMTP.write_data(l_mail_conn, p_message || UTL_TCP.crlf || UTL_TCP.crlf); UTL_SMTP.quit(l_mail_conn); END; /
and the errordeclare conn utl_smtp.connection; smtp_domain VARCHAR2(256) := null; BEGIN utl_smtp.command(conn,'STARTTLS'); utl_smtp.helo(conn, smtp_domain); send_mail(p_to => '[email protected]', p_from => '[email protected]', p_message => 'can i get message.'); END; /
I checked in Control Panel that IIS is installed and also SMTP is configured.ORA-29278: SMTP transient error: 421 Service not available ORA-06512: at "SYS.UTL_SMTP", line 21 ORA-06512: at "SYS.UTL_SMTP", line 97 ORA-06512: at "SYS.UTL_SMTP", line 159 ORA-06512: at line 5
I am able to ping HOST SMTP thro' TELNET
and I changed the parameter, SMTP_OUT_SERVER, as
I don't get no idea. is this due to use the GMAIL Server?ALTER SYSTEM SET SMTP_OUT_SERVER= 'smtp.gmail.com:25' scope = both
Oracle 10 g and Windows version is XP - SP3
Thanks for any help
Concerning
KnockaertWhen I googled for "Gmail PL/SQL" I find a lot of things, including the articles of blog with code examples. How about you?
-
My daughter has a chemistry assignment that has a simulation using the Shockwave Player. Repeatedly, I uninstalled and installed using IE11 and Chrome. I am sent to the download page for Adobe for 64-bit whenever I'll use IE11... even though I followed the instructions from Adobe regarding ensuring that I use 32-bit. Attached are the errors I get when downloading Chrome. Any suggestions would be greatly appreciated.
You have administrator privileges under the account you are using? Try to download and run the installer standalone (complete) from this link
-
Have the intermittent connection when you use WiFi and conflict error IP address when using Ethernet
I have intermittent problems with my wireless internet connection. I contacted the ISP and they analyzed the configuration of the modem-router, changed some and told me to try to reconnect. I try again and the connection is OK. The ISP has caress each other on the back and sent me on my merry way not-so-small. Problem is at an unpredictable time, problems (do) happen.
Usually the failure scenario does not have a huge problem - plus one
gene as a problem. I just keep trying to connect through Windows
Network and sharing Center, and possibly the connection is made. But in some cases, time is critical; I eventually lose 10 to 20 minutes of typing-search-typing-correction-etc in a web form when the connection disappears before making a SHIPMENT. (Some time, after the failed wireless and re - connect, I was actually able to recover pretty quickly that the site has not been exceeded me.) So in this scenario I can't lost any strike.)I would like to connect my pc to the internet via an ethernet cable
the modem-router. I could take this approach right after the wireless
connection failed. Or in a preventive way, when I know I'll be typing-
mode of research-type-fixed-etc and I want to be really sure. When I tried this, I get the error "Windows has detected an IP address conflict.What I do at this point to get around the Wi - Fi connection and connect through the Ethernet cable?
The topic is edited for clarity of the moderator.* *.
[Original title: LOST INTERMITTENT WIRELESS INTERNET CONNECTION]
It is not clear what parameters your ISP technology management may have changed on your modem/router. As a general rule, the ISP concerned the link between their server and your modem, but any fiddling with settings that control this link will not effect either on the link between your computer and the modem/router.
If you still haven't reset your router to its default settings, do not unless you know the necessary internal router settings for you connect to your ISP. If you have a cable Internet connection, the default settings may work OK, but if you have a DSL, they probably won't.
You should not get this "IP address conflict" error when you connect the Ethernet cable. Follow these steps:
Open the "network and sharing Center" and then click on "change adapter settings". You should see an icon for your wireless network adapter and an icon for your 'connection to the Local network' (your Ethernet connection).
- Right click on each of the icons, and select 'properties '.
- There should be a list titled "this connection uses the following items." In this list, select "Internet Protocol Version 4 (TCP/IP)" and then click "Properties".
- The radio buttons to "Obtain an IP address automatically" and "Obtain DNS server address automatically" should both selected. If this is NOT the case, do so and OK your way out. Furthermore, cancel your way.
If a card has been configured to use a specific IP address, your "IP address conflict" should now be fixed (you may need to restart the computer for the change to take effect).
If cards were already configured to obtain its IP address automatically, the problem lies in the configuration of your router. You will need to access the router's Web utility to study and make changes. To help you provide the brand and model of the router of the label on the back or the bottom. Also do the following to a time where you have an Internet connection:
Open a command prompt window (type cmd in the search box and press enter)
- In the black command prompt window, type the following command, and press ENTER after each line
ipconfig/all > "% userprofile%\Desktop\ipinfo.txt".
Notepad '% userprofile%\Desktop\ipinfo.txt '.
output
- In the opened Notepad window, click Edit > select all (or press CTRL + A) and then click Edit > copy (or press Ctrl + C)
- In the body of your Question, right-click > paste (or press CTRL + V) the data of the Notepad window
- Close Notepad and remove ipinfo.txt from your desktop
-
Hello
I am facing a problem during the cloning of production TEST environment.
Please see the below given error:
' RMAN-04014: failed to start: ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST.
And I used the following script to retrieve.
==========================================================================================
------------------------------------------------------------------
VI initTEST.ora
* .db_name = 'TEST '.
* .db_unique_name = 'TEST '.
SQL > startup nomount
=============================
Auxiliary RMAN.
run
{
allocate auxiliary CHANNEL c1 device type disk;
allocate auxiliary CHANNEL c2 device type disk;
allocate auxiliary CHANNEL c3 device type disk;
allocate auxiliary CHANNEL c4 device type disk;
the value of newname for tempfile 1 to ' / testdata/R12/TEST/datafile/temp01.dbf';
the value of newname for tempfile 2 to ' / testdata/R12/TEST/datafile/temp02.dbf';
the value of newname for tempfile 3 to ' / testdata/R12/TEST/datafile/temp03.dbf';
the value of newname for tempfile 4 to ' / testdata/R12/TEST/datafile/temp04.dbf';
the value of newname for tempfile 5 to ' / testdata/R12/TEST/datafile/temp05.dbf';
data duplicated in the 'TEST' backup location ' / backup/PROD_BKP_01_Nov_15 / '.
SPFILE
Define db_name = 'TEST '.
Set db_unique_name = 'TEST '.
Set cluster_database = "false".
Set use_large_pages = 'false '.
Set remote_listener = "
Set local_listener = "
Set listener_networks = "
Set control_files='/testdata/R12/TEST/controlfile_TEST.ctl"
Set diagnostic_dest ='/ oracle/app /'
Set log_archive_dest = "/ testdata/R12/archive.
Set audit_file_dest='/oracle/app/product/11.1.0/db_1/rdbms/audit/"
Db_file_name_convert '+ DATA_P/PROD/DATAFILE', set ' / testdata/R12/TEST/datafile.
Set log_file_name_convert '+ DATA_P/PROD/ONLINELOG', ' / testdata/R12/TEST/datafile ', '+ RECO_P/PROD/ONLINELOG', ' / testdata/R12/TEST/datafile;
switch tempfile;
}
-----------------------------------------------------------------
Then please suggest a solution?
With thanks and greetings
Ngoyi
------------
This is what Oracle says:
ORA-16019: can't use string with LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST
Cause: One of the following events caused a mismatch:
(1) setting LOG_ARCHIVE_DEST or LOG_ARCHIVE_DUPLEX_DEST was in use when the LOG_ARCHIVE_DEST_n specified (n = 1.. 31) or parameter DB_RECOVERY_FILE_DEST occurred during extraction of initialization parameters.
(2) LOG_ARCHIVE_DUPLEX_DEST or LOG_ARCHIVE_DEST parameter was used when an attempt is made to use an ALTER SYSTEM or ALTER SESSION command to set a value for the specified parameter LOG_ARCHIVE_DEST_n or DB_RECOVERY_FILE_DEST.
(3) a command ALTER SYSTEM ARCHIVE LOG START FOR was in effect when the specified parameter LOG_ARCHIVE_DEST_n met during extraction of initialization parameters.
(4) an ALTER SYSTEM ARCHIVE LOG START FOR order was in effect when an attempt is made to a command ALTER SYSTEM or ALTER SESSION allows you to set a value for the specified parameter LOG_ARCHIVE_DEST_n.
Action: Eliminate all inconsistent parameter definitions.
-
whenever I run this code I get this error
SQL Error: ORA-30926: failed to get a stable set of rows in the source tables
30926 00000 - "impossible to get a stable set of rows in the source tables.
* Cause: A stable set of rows could not be achieved due to the large dml
activity or one not deterministic where clause.
* Action: Remove any non deterministic of the clauses and reissue of the dml.
Don't know wht goes wrong!
SQL:
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s
full outer join (select * provider where COMPANY_CODE = 2) d
on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
UPDATE SET s.VENDOR = d.VENDOR
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (SELLER, COMPANY_CODE)
VALUES (d.VENDOR, d.COMPANY_CODE)
Work request: (deleted the duplicate data in tables (source and target))
MERGE IN VENDORS_ACTIVE_DATE s
USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,
NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.
NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.
(case when ((d.VENDOR = s.VENDOR))
- AND D.ACTIVEDATE = S.ACTIVEDATE
and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))
and (d.COMPANY_CODE = s.COMPANY_CODE)
)
then "MATCH".
When d.COMPANY_CODE is null
then 'DELETE '.
When s.COMPANY_CODE is null
then "INSERT."
else 'UPDATE '.
chck end)
from (select * from suppliers where COMPANY_CODE = 2) d
full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s
on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)
) d
WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))
WHEN MATCHED THEN
S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE
WHERE d.chck in ('UPDATE', 'DELETE')
DELETE WHERE d.chck = 'DELETE '.
WHEN NOT MATCHED THEN
INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)
VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)
-
CARS: 2 nodes with Oracle single Client Access name (SCAN)
OS: OEL 5.4 64-bit
Version: 11.2.0.3
When I try to connect from the client to the RAC by using the SCANNER, I get ERROR: ORA-12541: TNS: no listenerOracle. I noticed that the service is in place and properly configured (client tnsnames).
servicioBD = (DESCRIPTION = (LOAD_BALANCE = yes) (ADDRESS = (PROTOCOL = TCP)(HOST = scanvip.domain1.local) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = serviceBD) (FAILOVER_MODE = (TYPE = SΘLECTIONNER) (METHOD = BASIC) (RETRIES = 180) (DELAY = 5))))
serviceBD service
SQL > select name, failover_method, failover_type, failover_retries, goal, clb_goal, aq_ha_notifications from dba_services where service_id = 3;
METHOD NAME TYPE PURPOSE CLB_GOAL AQNOT ATTEMPTS
---------------------------------------------------------------- ----------- ---------- -------- ---------- -------- -----
serviceBD BASIC SELECT 180 NO LONG YES
But when I do not use the service created for the tnsnames file SCAN, it's that if I directly put tnsnames to connect to any work of two nodes very well.
Node 1
servicioBD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.210.2.10)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
Or
Node 1
servicioBD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.210.2.11)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
I have also observed the following (cluvfy).
1 all LISTENER_SCAN running node 1
2 there is no TCP connectivity
3 the error message is obtained PRVF-5713
[grid@rac1 ~] comp cluvfy $ scan - verbose
Check scan
Checking the single Client access name (SCAN)...
ANALYZE the running node name? ListenerName Port running?
---------------- ------------ ------------ ------------ ------------ ------------
scanvip.Domain1.local 1521 LISTENER_SCAN1 true true rac1
scanvip.Domain1.local 1521 LISTENER_SCAN2 true true rac1
scanvip.Domain1.local 1521 LISTENER_SCAN3 true true rac1
Checking TCP connectivity to ANALYZE listeners...
Node of ListenerName TCP connectivity?
------------ ------------------------ ------------------------
RAC1 LISTENER_SCAN1 no
RAC1 LISTENER_SCAN2 no
RAC1 LISTENER_SCAN3 no
PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.17) (PORT = 1521)))'"running on the node"rac1"produces no output no output.
PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.19) (PORT = 1521)))'"running on the node"rac1"produces no output no output.
PRVF-5713: command "/u01/app/11.2.0/grid/bin/tnsping" (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=10.210.2.18) (PORT = 1521)))'"running on the node"rac1"produces no output no output.
Check the resolution settings of name to 'scanvip.domain1.local '...
SCAN the IP address status comment name
------------ ------------------------ ------------------------ ----------
scanvip.Domain1.local 10.210.2.18 spent
scanvip.Domain1.local 10.210.2.19 spent
scanvip.Domain1.local 10.210.2.17 spent
Verification of the installation program ANALYZES VIP and the listener has failed
The analysis check failed on all specified nodes.
Could someone help me please.
The solution was to restart scan_listener.
srvctl stop scan_listener
srvctl start scan_listener
-
ERROR: ORA-01017: name of user and password invalid. connection refused
Hi all
I need your help.
I have installed Oracle Audit Vault Server Release 10.2.3.2 in agent collection and Linux system in Windows system. Adding and start collecting DBAUD went fine however adding AGAIN collector back return errors when executing command avorcldb add_collector as follows
[oracle@avsrv ~] $
[oracle@avsrv ~] $ avorcldb add_collector - SrcName orcl nom_agent - avagent01 - colltype REDO - av Lugaopc:1521:orcl
collector REDO_Collector for orcl source already exists
the initialization of the REDO Collector
ERROR: could not get by using jdbc connection AV source user:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
ERROR: ORA-01017: name of user and password invalid. connection refused
[oracle@avsrv ~] $
Here are the contents of the avorcldb.log file
09/09/13 16:58:44 [INFO] command add_collector treatment
09/09/13 16:58:44 [INFO] treatment arg - FromName = orcl
09/09/13 16:58:44 [INFO] treatment arg - nom_agent = avagent01
09/09/13 16:58:44 [INFO] treatment arg - colltype = REDO
09/09/13 16:58:44 [INFO] treatment arg - av = Lugaopc:1521:orcl
09/09/13 16:58:44 [INFO] connect information: Lugaopc:1521:orcl
09/09/13 16:58:45 [INFO] connecting administration AV got using jdbc:oracle:oci:@AVDB
09/09/13 16:58:45 [INFO] execution SQL like [ADM@AV] select s.host |': ' | A1.num_value |': ' | avsys.av A2.char_value $attrvalue a1, a2 avsys.av$ attrvalue, avsys.av$ s source, avsys.av$ attrdef ad1, ad2 avsys.av$ attrdef where source_name =: 1 and a1.inst_id = s.source_id and a2.inst_id = s.source_id and a1.attr_id = ad1.attr_id and ad1.attr_name = 'PORT' and a2.attr_id = ad2.attr_id and ad2.attr_name = 'DB_SERVICE. '
09/09/13 16:58:45 [INFO] using bind value orcl
09/09/13 16:58:45 [INFO] Return value = Lugaopc:1521:orcl
09/09/13 16:58:45 [INFO] connect information: Lugaopc:1521:orcl
09/09/13 16:58:45 [INFO] execution SQL like [ADM@AV] select to_char (source_id) in the avsys.av$ source where source_name =: 1
09/09/13 16:58:45 [INFO] using bind value orcl
09/09/13 16:58:45 [INFO] return value = 1
09/09/13 16:58:46 [INFO] got the source user connection using jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09/09/13 16:58:46 [INFO] executing SQL in [ADM@AV] select decode (c.status, 1, 'active', 0, 'fallen', null) of avsys.av$ collector c, avsys.av$ s source where source_name =: 1 and collector_name =: 2 and c.source_id = s.source_id
09/09/13 16:58:46 [INFO] using bind value orcl
09/09/13 16:58:46 [INFO] bind Using REDO_Collector value
09/09/13 16:58:46 [INFO] Return value = active
09/09/13 16:58:46 [MESG] collector REDO_Collector for orcl source already exists
09/09/13 16:58:46 [INFO] executing SQL in [ADM@AV] select decode (c.status, 1, 'active', 0, 'fallen', null) of avsys.av$ collector c, avsys.av$ s source where source_name =: 1 and collector_name =: 2 and c.source_id = s.source_id
09/09/13 16:58:46 [INFO] using bind value orcl
09/09/13 16:58:46 [INFO] bind Using REDO_Collector value
09/09/13 16:58:46 [INFO] Return value = active
09/09/13 16:58:46 [MESG] initialization REDO Collector
09/09/13 16:58:46 [INFO] execution SQL like [ADM@AV] select the username of avsys.av$ source where source_name =: 1
09/09/13 16:58:46 [INFO] using bind value orcl
09/09/13 16:58:46 [INFO] Return value = AVSRCUSR1
09/09/13 16:58:46 [INFO] as [ADM@AV] SQL execution {? = call avsys.dbms_audit_vault.reset_source_user (?)}
09/09/13 16:58:46 [INFO] adding user password mask
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select table_name from user_tables where upper (table_name) = upper(:1)
09/09/13 16:58:46 [INFO] bind Using STREAMS_HEARTBEAT value
09/09/13 16:58:46 [INFO] Return value = STREAMS_HEARTBEAT
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL drop table streams_heartbeat
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL create table streams_heartbeat (src_dbname varchar2 (4000), job_number number, heartbeat_time timestamp)
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] declare dbs_name varchar2 (4000); start selecting rename in dbs_name from global_name; insert into streams_heartbeat values (dbs_name, 0, SYSTIMESTAMP); end;
09/09/13 16:58:46 [INFO] SQL execution as [USR@SRC] create or replace procedure update_heartbeat IS start update streams_heartbeat set heartbeat_time = (select systimestamp from double); commit; end;
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select table_name from user_tables where upper (table_name) = upper(:1)
09/09/13 16:58:46 [INFO] bind Using CAPTURE_RULES value
09/09/13 16:58:46 [INFO] Return value = CAPTURE_RULES
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL drop table capture_rules
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL create table capture_rules (nom_regle varchar2 (50), rule_scope varchar2 (6), rule_type VARCHAR2 (3), obj_name varchar2 (100))
09/09/13 16:58:46 [INFO] execution SQL like [ADM@AV] select Rename global_name
09/09/13 16:58:46 [INFO] Return value is AVDB. AVSRV
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select db_link in user_db_links where db_link =: 1
09/09/13 16:58:46 [INFO] Using AVDB bind value. AVSRV
09/09/13 16:58:46 [INFO] Return value is AVDB. AVSRV
09/09/13 16:58:46 [INFO] the Execute SQL as database link [USR@SRC] drop "AVDB. AVSRV ".
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select the version of v$ instance
09/09/13 16:58:46 [INFO] Return value = 11.2.0.1.0
09/09/13 16:58:46 [INFO] creating DB link using AVDB. AVSRV, AVSRCUSR1, {avsrcusr_pwd}, Lugaopc, 1521, orcl
09/09/13 16:58:46 [INFO] login as srcuser_ora01 to @(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=Lugaopc) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = orcl)))
09/09/13 16:58:46 [INFO] output of SQLPlus
09/09/13 16:58:46 [INFO]
09/09/13 16:58:46 [INFO] Package created.
09/09/13 16:58:46 [INFO]
09/09/13 16:58:46 [INFO] no error.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] package body created.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] no error.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] Package created.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] no error.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] package body created.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] no error.
09/09/13 16:58:47 [INFO] execution SQL like [USR@SRC] select distinct name of user_errors, whose name =: 1
09/09/13 16:58:47 [INFO] bind Using DBMS_SRC_STREAMS_COLLECTOR value
09/09/13 16:58:47 [INFO] Return value = null
09/09/13 16:58:47 [ERROR] could not get by using jdbc connection AV source user:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09/09/13 16:58:47 [ERROR] ORA-01017: name of user and password invalid. connection refused
java.sql.SQLException: ORA-01017: name of user and password invalid. connection refused
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
to oracle.jdbc.driver.PhysicalConnection. < init > (PhysicalConnection.java:546)
to oracle.jdbc.driver.T2CConnection. < init > (T2CConnection.java:162)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
to oracle.av.avca.jdbc.JdbcConnection. < init > (JdbcConnection.java:87)
at oracle.av.orcldb.DAO.initConnection(DAO.java:79)
to oracle.av.orcldb.DAO. < init > (DAO.java:64)
at oracle.av.orcldb.commands.AddCollector.setupCollector(AddCollector.java:746)
at oracle.av.orcldb.commands.AddCollector.execute(AddCollector.java:230)
at oracle.av.orcldb.Command.process(Command.java:89)
at oracle.av.orcldb.Main.process(Main.java:118)
at oracle.av.orcldb.Main.main(Main.java:132)
I searched the forum at my best level without clear solution
Concerning
Sadik
avorcldb add_collector - REDO SrcName orcl nom_agent - avagent01 - colltype - av Lugaopc:1521:orcl
Specify the connection string to the Vault check server not in the source database
-
One-way replication using queries and mapping DML - error
Environment: Unique Windows physical system and Oracle 11 g R2 DB of EA. Two schemas with the structure of the different tables. This is a home office staff.
The order of the day: runs DML replication of 2 tables to another single table with use of query and chips
Disclaimer: I have read the guide e17791.pdf Admin and checked the forum before asking this question here.
My excerpt:
Replicat:EXTRACT srcextm USERID gguser, PASSWORD gguser --DDL TRANLOGOPTIONS EXCLUDEUSER gguser RMTHOST localhost, MGRPORT 7809 RMTTRAIL G:\app\gg32\dirdat\mt TABLE source.*, SQLEXEC (ID query2col, QUERY "select a.sno as sno, a.name as name, b.phone as phone from source.test a, source.contact_no b where a.sno=1 and a.sno=b.sno"), TOKENS (TK_SNO = @GETVAL(query2col.sno), TK_NAME = @GETVAL(query2col.name), TK_PHONE = @GETVAL(query2col.phone));
Replicat report:REPLICAT srcrepm SOURCEDEFS G:\app\gg32\dirsql\sourcedefs.sql --DDLERROR DEFAULT IGNORE USERID gguser, PASSWORD gguser MAP source.*, TARGET target.directory, colmap(USEDEFAULTS, SNO= @Token("TK_SNO"), NAME= @Token("TK_NAME"), PHONE= @Token("TK_PHONE"));
Note: I left out the statistics.*********************************************************************** Oracle GoldenGate Delivery for Oracle Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 Windows (optimized), Oracle 11g on Apr 23 2012 06:24:05 Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved. Starting at 2012-10-15 10:00:34 *********************************************************************** Operating System Version: Microsoft Windows 7 , on x64 Version 6.1 (Build 7600: ) Process id: 8932 Description: *********************************************************************** ** Running with the following parameters ** *********************************************************************** 2012-10-15 10:00:34 INFO OGG-03035 Operating system character set identified as windows-1252. Locale: en_US, LC_ALL:. REPLICAT srcrepm SOURCEDEFS G:\app\gg32\dirsql\sourcedefs.sql --DDLERROR DEFAULT IGNORE USERID gguser, PASSWORD ****** MAP source.*, TARGET target.directory, colmap(USEDEFAULTS, SNO= @Token("TK_SNO"), NAME= @Token("TK_NAME"), PHONE= @Token("TK_PHONE")); 2012-10-15 10:00:34 INFO OGG-01815 Virtual Memory Facilities for: COM anon alloc: MapViewOfFile anon free: UnmapViewOfFile file alloc: MapViewOfFile file free: UnmapViewOfFile target directories: G:\app\gg32\dirtmp. CACHEMGR virtual memory values (may have been adjusted) CACHESIZE: 512M CACHEPAGEOUTSIZE (normal): 4M PROCESS VM AVAIL FROM OS (min): 1G CACHESIZEMAX (strict force to disk): 881M Database Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for 32-bit Windows: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 - Production Database Language and Character Set: NLS_LANG = ".WE8MSWIN1252" NLS_LANGUAGE = "AMERICAN" NLS_TERRITORY = "AMERICA" NLS_CHARACTERSET = "WE8MSWIN1252" *********************************************************************** ** Run Time Messages ** *********************************************************************** Opened trail file G:\app\gg32\dirdat\mt000000 at 2012-10-15 10:00:34 Wildcard MAP resolved (entry source.*): MAP "SOURCE"."TEST", TARGET target.directory, colmap(USEDEFAULTS, SNO= @Token("TK_SNO"), NAME= @Token("TK_NAME"), PHONE= @Token("TK_PHONE")); Using the following default columns with matching names: SNO=SNO, NAME=NAME Using the following key columns for target table TARGET.DIRECTORY: SNO. 2012-10-15 10:00:34 WARNING OGG-01004 Aborted grouped transaction on 'TARGET.DIRECTORY', Database error 1403 (OCI Error ORA-01403: no data found, SQL <UPDATE "TARGET"."DIRECTORY" SET "NAME" = :a1,"PHONE" = :a2 WHERE "SNO" = :b0>). 2012-10-15 10:00:34 WARNING OGG-01003 Repositioning to rba 984 in seqno 0. 2012-10-15 10:00:34 WARNING OGG-01154 SQL error 1403 mapping SOURCE.TEST to TARGET.DIRECTORY OCI Error ORA-01403: no data found, *SQL <UPDATE "TARGET"."DIRECTORY" SET "NAME" = :a1,"PHONE" = :a2 WHERE "SNO" = :b0>*. 2012-10-15 10:00:34 WARNING OGG-01003 Repositioning to rba 984 in seqno 0. Source Context : SourceModule : [er.errors] SourceID : [er/errors.cpp] SourceFunction : [take_rep_err_action] SourceLine : [623] 2012-10-15 10:00:34 ERROR *OGG-01296 Error mapping from SOURCE.TEST to TARGET.DIRECTORY.* *********************************************************************** * ** Run Time Statistics ** * *********************************************************************** Last record for the last committed transaction is the following: ___________________________________________________________________ Trail name : G:\app\gg32\dirdat\mt000000 Hdr-Ind : E (x45) Partition : . (x04) UndoFlag : . (x00) BeforeAfter: A (x41) RecLength : 77 (x004d) IO Time : 2012-10-15 09:23:18.000000 IOType : 15 (x0f) OrigNode : 255 (xff) TransInd : . (x03) FormatType : R (x52) SyskeyLen : 0 (x00) Incomplete : . (x00) AuditRBA : 7 AuditPos : 31137808 Continued : N (x00) RecCount : 1 (x01) 2012-10-15 09:23:18.000000 FieldComp Len 77 RBA 984 Name: SOURCE.TEST ___________________________________________________________________ Reading G:\app\gg32\dirdat\mt000000, current RBA 984, 0 records Report at 2012-10-15 10:00:34 (activity since 2012-10-15 10:00:34) From Table SOURCE.TEST to TARGET.DIRECTORY: # inserts: 0 # updates: 0 # deletes: 0 # discards: 1 Last log location read: FILE: G:\app\gg32\dirdat\mt000000 SEQNO: 0 RBA: 984 TIMESTAMP: 2012-10-15 09:23:18.000000 EOF: NO READERR: 0 2012-10-15 10:00:34 ERROR OGG-01668 PROCESS ABENDING.
DB data table:select * from source.test;
SNO NAME UPDATED EMAIL ---------------------- --------------- ------------------------- ------------------------------ 3 Dickens 15-OCT-12 12.20.50.614000000 AM NA 1 Madhu 14-OCT-12 10.52.05.213000000 PM NA 2 Tom 14-OCT-12 10.52.05.213000000 PM NA 3 rows selected
Select * from source.contact_no;
SNO PHONE ---------------------- ---------- 1 9888888885 2 9888888886 2 rows selected
Select * from target.directory;
At startup, the evening only replicate with the error above.SNO NAME PHONE ---------------------- --------------- ---------- 0 rows selected
My question is:
Why is an update performed at Target.Directory table with the WHERE clause used in the SELECT query to my SNIPPET, which in turn, was intended for the SOURCE. TEST and SOURCE. CONTACT tables?
Published by: MadhuGopanna on October 14, 2012 23:25: fixed select query. Same recurring error."to replicate (exlisitly give source.test as a source)-
Question: If I mention only source.test as a source, would have extracted ignore changes made to source.contact_no?Stating that -
MAP source.*, TARGET target.directory
sandbox say GG to you that you have what it takes to replicate all tables in the source schema in target.directory. -So, it's nonsense.
"to extract (add section TABLEEXCLUDE to exclude the replication source.contact_no) -"
Question: I want to reproduce the combination of test and contact_no of source data in the target.directory table. In this regard the TABLEEXCLUDE of source.contact_no will provide the desired result?TABLEEXCLUDE clause do not exclude the possibility of using the table in queries in SQLEXEC or anywhere else. He just exclude the table replication if you use wildcard characters.
For example -.TABLE user.*; TABLE user.TEST;
each user of schema table would be replicated except user. TEST.
I think it is the right way to say what you want-
EXTRACT ext1 --connection to database-- USERID ogg, PASSWORD xxxx --hostname and port for trail-- --rmthost db-dev-2, mgrport 7809 --path and name for trail-- --rmttrail /u01/app/oracle/product/11.1.1.12ogg/dirdat/lt EXTTRAIL /u01/app/oracle/product/11.1.1.12ogg/dirdat/ss SEQUENCE test.* --DDL support DDL INCLUDE MAPPED OBJNAME test.* --DML TABLE source.TEST, SQLEXEC (ID query2col, QUERY "select b.phone as phone from source.test a, source.contact_no b where a.sno=:sno_params and a.sno=b.sno", PARAMS (sno_params = SNO)) TOKENS (TK_PHONE = @GETVAL(query2col.phone)); TABLEEXCLUDE source.CONTACT_NO;
--Replicat group -- REPLICAT REP2 --source and target definitions --ASSUMETARGETDEFS SOURCEDEFS /u01/app/oracle/product/11.1.1.1.2ogg411g/dirdef/sourcedef --target database login -- USERID ogg, PASSWORD xxxx --file for dicarded transaction -- DISCARDFILE /u01/app/oracle/product/11.1.1.1.2ogg411g/discard/rep1_discard.txt, APPEND, MEGABYTES 10 --ddl support DDL --Specify table mapping --- MAP source.TEST, TARGET target.DIRECTORY, COLMAP (USEDEFAULTS, PHONE = @TOKEN ("TK_PHONE")); DDLERROR 24344 DISCARD;
Just tested - works fine.
Published by: Artem Khisamiev on 15.10.2012 08:00
Published by: Artem Khisamiev on 18.10.2012 05:58
-
Nightly jobs and error ORA-00054
Today, I discovered that some of my scripts for the task has failed with error ORA-00054.
TRUNCATE TABLE MY_SCHEMA. MV_005 STORAGE REDUCTION
ORA-00054: resource busy and acquire with NOWAIT specified
This is the first time that this error occurs: all these scripts run on regular basis and using Oracle Grid Engine.
(1) is it possible now to know what and how the other session was using this table?
(2) how to avoid this error?
Pedro.If you're on 11 GR 1 material you can issue:
alter session set ddl_lock_timeout=60
DDL_LOCK_TIMEOUT Property Description Parameter type Integer Default value 0 Modifiable ALTER SESSION Range of values 0 to 1,000,000 (in seconds) Basic No
DDL_LOCK_TIMEOUT indicates how long between DDL statements patient in a DML lock queue. The default value of zero indicates a State of NOWAIT. The maximum value of 1 000 000 seconds will result in the DDL statement for still pending to acquire a DML lock.
If a lock is not acquired before the expiration of the period time, then an error is returnedOtherwise, you can create a procedure to intercept the error ORA-00054 and try again
-
Error ORA-01455 timsten using customer oracle11g conncting
Hello
We're uisng Oracle times ten version 11.2.1.8.0 IMDB
My applications connecting as follows
ProC/OIC apps-> customer (11.2.0.1.0) oracle-Timesten customer-(11.2.1.8.0)-> Timesten Server >
sched_start is the column of type DATE in Timesten database and Oracle client
When we ran, select the date type following error
The oracle client
sqlplus schemauserr/password@database;
SQL * more: Production version 11.2.0.1.0 Thu Jun 30 07:20:19 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL > select sched_start in the PROCESS_INFO;
ERROR:
ORA-01455: converting column overflows the integer data type
could help me on this issue
Thank you
-AKOIC in TimesTen is supported by a modified version of the Oracle Instant Client. It is the version that is installed with TimesTen in the
/ttoracle_home directory. In the future, support for the OIC TimesTen will be merged into the main Oracle client code base, but that does not is it still. Yes, at the moment to use OCI (and so Pro * C, since the Pro * C uses OCI) with TimesTen, you are limited to only using the special moment Client supplied with TimesTen. This special moment customer is able to communicate with the two TimesTen and Oracle DB; It's a customer snapshot Oracle DB 11.1.0.7.0 standard with a few additions so that he could work with TimesTen. The way that support of the OIC is working in TimesTen is that you need to configure a special TNS (in tnsnames.ora) service for the DSN data store that you want to connect to (i.e. you must all the ODBC configuration normal configuration in sys.odbc.ini). In your BEAK (or pro * C) code you can connect to that service name. There is a special code in the BEAK / SQL * Net stack such that when he sees it connects to TimesTen instead of oracle takes a path of different code that loads the ODBC TimesTen driver and use it to talk to TimesTen. This is of cousre all transparent to the application. The application moves done what OIC calls as usual.
All of this is detailed in the developer's Guide C TimesTen which is part of the defined TimesTen documentation as well as the various restrictions and limitations that apply to the use of Pro * C and OIC with TimesTen. One of the documented restriction is that althouth the customer Instant TT includes a binary sqlplus, that can be used with oracle databases. It is not working properly and is therefore not supported with, TimesTen.
I hope that clarifies. For more information please see the Guide to the Developer TimesTen C.
Chris
-
Hello
I try to extract the schema DDL to a base (10.2.0.4.0 - 64-bit Enterprise Edition on Solaris 10). I ran the query below and get an ORA-00907: parenthesis right absent error.
SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN ('TABLE_PARTITION', "INDEX_PARTITION", "LOB");
This is the output when executing the above in the sqlplus worksheet
Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects if object_type in ('TABLE_PARTITION',"INDEX_PARTITION","LOB")
*
ERROR on line 1:
ORA-00907: lack of right parenthesis
remove the where the clause gives the following:
Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects
*
ERROR on line 1:
ORA-00907: lack of right parenthesis
Pointers would be welcome. I know I could get the DDL using exp/imp, but I'd like to understand why I get the error of missing parenthesis.
see you soon,
EwanSELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN
You don't need an alias here. Getting rid of the "as long as object_type' and it should work.
Maybe you are looking for
-
Satellite P300D 12L - I want overclock the processor
There are nearly two and a half years since I am the owner of this laptop.I want to overclock the processor, AMD Turion X 2 Ultra ZM 80, but I have found no information, guides or tutorials on this topic.Could someone help me? Thank you
-
Satellite A200-1AG - Drivers not found
I install a new SO on my Satellite A200-1AG, MODEL No. PSAECE-01100KSP,.and there are some haven´t drivers been installed correctly. They are: Controladora bus SMPCI\VEN_8086 & DEV_27DA & SUBSYS_FF001179 & REV_02\3 & B1B FB68 & 0 & FBUnknown deviceAC
-
HI, I'm doing a project in my school. My teacher asked me to get the MS access database, and then put it in labview... I try making it one, but I don't know where are my mistakes... Please tell where I was wrong... Moreover, I quite new to labview wi
-
Where can I buy Acer Aspire V5 - 471P which is not available online to the United States?
I want to buy the laptop Acer Aspire V5 14 inch touch screen (V5 - 471P). I tried searching everywhere online, it is not available in the acer shop online also even though it is listed. The version 15 ' is everything that I found in the interneT, but
-
Library of Windows media player will not synchronize
My library / windows media player synchronization does not work, even after the library (required) / sync for monitring locations settings. I tried to reinstall and install the media player again, but I'm not able to do. Could someone help?