Encryption in PL/SQL

Hi all,
Has anyone came across encryption code, such as DES, written in PL/SQL?
I found two files in Oralce 8.1.6, namely $ORACLE_HOME/rdbms/admin/dbmsobtk.sql & prvtobtk.plb. These files created a package called DBMS_OBFUSCATION_TOOLKIT which contains the following procedures:
PROCEDURE DESEncrypt(
input IN RAW,
key IN RAW,
encrypted_data OUT RAW);
PROCEDURE DESEncrypt(
input_string IN VARCHAR2,
key_string IN VARCHAR2,
encrypted_string OUT VARCHAR2);
PROCEDURE DESDecrypt(
input IN RAW,
key IN RAW,
decrypted_data OUT RAW);
PROCEDURE DESDecrypt(
input_string IN VARCHAR2,
key_string IN VARCHAR2,
decrypted_string OUT VARCHAR2);
I compiled the package, using sys, then granted execute privilege to a user. However I encountered error when compiling my PL/SQL function which calls the DESEncrypt procedure. The following is my code and error message
My Code
CREATE OR REPLACE FUNCTION DESEncrypt(pv_string VARCHAR2, pv_despin VARCHAR2) RETURN VARCHAR2
AS
lv_encrypted VARCHAR2(128);
BEGIN
DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT(pv_string, pv_despin, lv_encrypted);
RETURN(lv_encrypted);
END;
Error Message
LINE/COL ERROR
5/2 PLS-00307: too many declarations of 'DESENCRYPT' match this call
5/2 PL/SQL: Statement ignored
Appreciate if someone can tell me where to find Encrypt code written in PL/SQL or help me resolve this problem (I can't change the package body for DBMS_OBFUSCATION_TOOLKIT since the prvtobtk file is wrapped.
Thank you.
Rdgs,
Lau

You must ensure that the lenght of the string to encrypt is divisible by 8. Perform the following before calling
/* Pad the string with spaces until it's length is a multiple of 8 */
while mod(strLength, 8) <> 0
loop
encryption_string := encryption_string &#0124; &#0124; ' ';
strLength := length(encryption_string);
end loop;
/* Encrypt the string the was passed to the procedure */
dbms_obfuscation_toolkit.desencrypt(input_string => encryption_string,
key_string => v_key_string,
encrypted_string => v_encrypted_form);
Thanks
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by hlau:
Hi all,
Has anyone came across encryption code, such as DES, written in PL/SQL?
I found two files in Oralce 8.1.6, namely $ORACLE_HOME/rdbms/admin/dbmsobtk.sql & prvtobtk.plb. These files created a package called DBMS_OBFUSCATION_TOOLKIT which contains the following procedures:
PROCEDURE DESEncrypt(
input IN RAW,
key IN RAW,
encrypted_data OUT RAW);
PROCEDURE DESEncrypt(
input_string IN VARCHAR2,
key_string IN VARCHAR2,
encrypted_string OUT VARCHAR2);
PROCEDURE DESDecrypt(
input IN RAW,
key IN RAW,
decrypted_data OUT RAW);
PROCEDURE DESDecrypt(
input_string IN VARCHAR2,
key_string IN VARCHAR2,
decrypted_string OUT VARCHAR2);
I compiled the package, using sys, then granted execute privilege to a user. However I encountered error when compiling my PL/SQL function which calls the DESEncrypt procedure. The following is my code and error message
My Code
CREATE OR REPLACE FUNCTION DESEncrypt(pv_string VARCHAR2, pv_despin VARCHAR2) RETURN VARCHAR2
AS
lv_encrypted VARCHAR2(128);
BEGIN
DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT(pv_string, pv_despin, lv_encrypted);
RETURN(lv_encrypted);
END;
Error Message
LINE/COL ERROR
-------- <HR></BLOCKQUOTE>
null

Similar Messages

  • CF 11: Configuration a datasources to MS SQL Backend with encryption enforced by SQL Server

    Hello List;
    I have the following problem: Configuration a datasources to MS SQL Backend with option encryption enforced (by SQL Server).
    I goggled in the internet for the configuration of the datasource and find multiple articles/advices:
    Configuration a datasource type other with jtds.jdbc.Driver and manual configuration of the connection string:
    1. Downloading the driver and copy to the cfusion/lib directory: Done, the driver was recognized by coldfusion after a restart of the service.
    2. Copying the ntlmauth.dll to the bin directory of jre/bin: Done
    3. Configuration of the jdbc URL: jdbc:jtds:sqlserver://xxxx.xxx.xxx.net:1433/db: Works, I don’t  get a connection timeout
    4. User and PW: Works: I don’T get a login failure.
    5. Advanced settings: Connection String: Maybe here is something wrong: EncryptionMethod=SSL; TrustStore=Path\sqlstore.jks; TrustStorePassword=xxx; ValidateServerCertificate=true; HostNameInCertificate=xxx.xxx.xxx.net;
    Error Message (Coldfusion logs/stack trace):  I/O Error: DB server closed connection. SQLException while attempting to connect: java.sql.SQLException: I/O Error: DB server closed connection..
    Has anybody experiences with this topic/can give me advices/send me screenshots.
    frank

    Hi Stephen;
    we tried: add EncryptionMethod=SSL; ValidateServerCertificate=false; to the connection string;
    And it doesn't work.. Are you sure, that you have enabled encryption enforced in your SQL-Server Settings.
    Oherwise the connection works, but the Connection is not encrypted:
    Coldfusion lies!
    You can controll this by veryfining the open connections on the sqlserver with the query:
    SELECT net_transport, protocol_type, encrypt_option ,auth_scheme, program_name FROM sys.dm_exec_connections AS c JOIN sys.dm_exec_sessions AS s ON c.session_id = s.session_id cross apply sys.dm_exec_sql_text(most_recent_sql_handle) AS d
    There you can see the jtds Connectionand the (programname) and the encryt_option (must be true).
    frank

  • Storing Encrypted passwords in SQL database

    Hey folks!
    I'm trying to encrypt a password to be put into a SQL database and then be decrypted when I pull it out to log a user in. Currently I can encrypt and store the password fine, but it's the grabbing and decrypting that is giving me troubles.
    Sometimes I do get the correct string back from the decrypted database string, but not very often. The main error I get is BadPaddingException, which I've read in the forum is something to do with key/string descrepancies. I sometimes get a IllegalBlockSizeException as well.
    When I look at the ASCII bytes stored in the database they are different from what is shown when I print them out on the screen using IE5.5.
    I'm wondering if anyone out there has run into similar problems and overcame, or could help me along in the right direction. Thnx!
    PJ

    What you need to do is a combination of what has been said here. Let's say you are working with a MS SQL Server, encrypting with 3DES. You have your key located somewhere on the system and use that (or something else that is specific to that record).
    1.) In your app, encrypt the text
    2.) Base64 Encode it so you can shove it in the database (I have also put this as RAW bytes in an Oracle DB)
    3.) make sure, when you are testing, that you check the length of the Base64 Encrypted Text you put in the database. SQL Server might add on extra characters to fill the field. i.e. if you are storing it in a varchar(250) field and you only fill 50 chars with your encrypted password, SQL Server might pad it with the extra 200. This will mess with your padding and throw an exception during the decryption process. I think I got around this with a simple TRIM statement when retrieving.
    4.) Retrieve the text with a SQL statement
    5.) Base64 Decode the text to get a byte array
    6.) Use the decryption algorithm with your original key on the byte array.
    I think that's it. Very quick. Low overhead on the server. Optimally, you would want to clear this from memory...blah blah blah....I could go on ;-p
    I have a small API I've written for this using 3DES that has been working great ever since JCE 1.0. All I have to do is keygen a new key whenever I want to use it again.
    Hope this helps,
    RG

  • Encryption strenght with SQL Server self-signed certificate

    I have SQL Server 2008 R2 Standard (64-bits) on Windows Server 2008 R2 Enterprise (64-bits) and client computers running on Windows 7 Professional (64-bits). If I set "Encrypt=True;TrustServerCertificate=True;" in connection strings, I'm wondering
    what encryption level or strength (40bits, 128bits, or other) are the connections getting?
    Microsoft is not clear about this topic:
    "The level of encryption used by SSL, 40-bit or 128-bit, depends on the version of the Microsoft Windows operating system that is running on the application and database computers."
    I appreciate any comment.

    Please see the discussion thread on this other post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ee159a8b-0b07-4637-83e7-d0487fc63a9e/which-cipher-current-supported-after-force-encryption?forum=sqlsecurity
    Hopefully this information will help.
    -Raul Garcia
      SQL Server Security
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Urgent!!!! - Problem in storing encrypte word into SQL Server database

    Hi,
    I want to encrypt a word using DES algorithm and store in the database.I am using Microsoft SQL Server 2000 database. I have tried giving the datatype as varchar,binary etc. but i am not able to store a byte array.Here is my code. Plz help me to store the encrypted word in the database.
    import javax.crypto.Cipher;
       import javax.crypto.BadPaddingException;
       import javax.crypto.IllegalBlockSizeException;
       import javax.crypto.KeyGenerator;
       import java.security.Key;
       import java.security.InvalidKeyException;
       import java.io.*;
       import java.sql.*;
       public class PwdEnc {
            private static String algorithm = "DESede";
            private static Key key = null;
            private static Cipher cipher = null;
            private static void setUp() throws Exception {
                key = KeyGenerator.getInstance(algorithm).generateKey();
                cipher = Cipher.getInstance(algorithm);
            public static void main(String[] args)
               throws Exception {
                setUp();
                byte[] encryptionBytes = null;
                String input = "akshatha34";
                encryptionBytes = encrypt(input);
                try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection con=DriverManager.getConnection("jdbc:odbc:SQLDB1","sa","projguru");
                   Statement st=con.createStatement();
                   System.out.println(encryptionBytes);
              //     String s1="Insert into tblLogin values("+encryptionBytes+","+encryptionBytes+")";
                   String s1="Insert into tblLogin values("+encryptionBytes+")";
                   System.out.println(s1);
                   int rs=st.executeUpdate(s1);
                   if(rs>=1)
                   System.out.println("inserted");
                   else
                   System.out.println("failed");
              }catch(Exception e){
                   System.out.println(e);
                   for(int i=0;i<encryptionBytes.length;i++)
                        System.out.println(encryptionBytes);
                   System.out.println(encryptionBytes);
    private static byte[] encrypt(String input)
    throws InvalidKeyException,
    BadPaddingException,
    IllegalBlockSizeException {
    cipher.init(Cipher.ENCRYPT_MODE, key);
    byte[] inputBytes = input.getBytes();
    return cipher.doFinal(inputBytes);
    thanks,
    Akshatha

    Try using a Prepared statement and setBytes;
    PreparedStatment insert = con.prepareStatement("Insert into tblLogin values(?)");
    insert.setBytes(1, encryptionBytes);
    insert.executeUpdate();

  • How to Encrypt Column in SQL Server?

    Hi all,
    I am using ColdFusion MX 7 and Microsoft SQL Server 2000
    database. I have a column that contains social security numbers of
    my users and am feeling the need to encrypt that column.
    Trouble is, I have no clue how to do this in SQL Server or
    how I could display the data from that column in my web app once
    the column is encrypted.
    Can anyone offer any suggestions?
    Thanks in advance!

    Here's one way...
    To encrypt:
    URLEncodedFormat(Encrypt(yourSStoencrypt,
    application.encKey)) then
    store this value in MSSQL
    To decrypt:
    Decrypt(URLDecode(yourSStodecryptfromDB), application.encKey)
    HTH
    Tim Carley
    www.recfusion.com
    [email protected]

  • Hide or encrypt password in SQL/PLSQL code

    Hi,
    I need some help or suggestions to hide or encrypt database user password in SQL/PLSQL code. In our environment, we use a connect string with username/password for the JDBC connection. Our goal is to take out the password string and read it or pass it to the code on the fly.
    Thanks,
    Subroto

    So in the database somewhere you are storing username and password credentials? How do those credentials get sent to the Java application? Presumably, the Java application has to connect to the database, requiring a JDBC connection string, in order to query the table in order to get the username and password you've stored in the database.
    Assuming there are two different JDBC connection strings-- one in the Java application that connects to the database and a second that is stored in the database and used later by the Java application, who do you want to protect the data from? Do you want to protect it from other database users? Or do you want to protect it from the Java developers? Or something else?
    Justin

  • Compare Encrypted String Using SQL

    I have some data encrypted in SQL.
    I want to use the LIKE command in SQL to compare a submitted form value to an encrypted value in the table.
    How can I do this?
    <cfquery>
    SELECT *
    FROM table
    WHERE decrypt(name,key) = '#form.name#'
    </cfquery>
    Of course the decrpyt does not work in the example above as it gives an error. But how can I achieve the results without error?
    Thanks.
    Chuck

    Making some headway here.
    Here is what I have so far.
    <cfquery name="cust" datasource="#DSN#" username="#USER#" password="#PASS#">
    SELECT *
    FROM customer
    </cfquery>
    <CFLOOP query="cust">
    <CFSET temp = QuerySetCell(cust,"decust_co","#Decrypt(cust.cust_co,variable.ekey)#",#cust.currentrow#)>
    <CFSET temp = QuerySetCell(cust,"decust_last","#Decrypt(cust.cust_last,variable.ekey)#",#cust.currentro w#)>
    <CFSET temp = QuerySetCell(cust,"decust_first","#Decrypt(cust.cust_first,variable.ekey)#",#cust.current row#)>
    </CFLOOP>
    [Didn't think you would have to loop the QuerySetCell's, but you do
    <cfquery dbtype="query" name="decust">
    SELECT *
    FROM cust
    WHERE custid > 0
    AND (decust_co LIKE '%#search#%'
    OR decust_last LIKE '%#search#%'
    OR decust_first LIKE '%#search#%'
    OR acct_no LIKE '%#search#%')
    ORDER BY decust_co
    </cfquery>
    OK...the part that is not working is my wildcard seach values. When I send a search variable of a single letter - C, M, H, etc...it will bring back results. If I send a NULL search variable - it will bring back all results...when I send a search variable with more than two characters - zero results. I am using two characters like "Ch" and one of the values is "Chuck". It should bring back a result. This query worked fine, prior to encrypting this data. I have verified the data in the QuerySetCell variables above are populating and decrypting correctly when I dumped the query.
    Any idea?

  • Encryption of pl/sql package/procedures/function code

    Is it possible to make the code inside a package/procedure/function un readable to other users.
    As is some of the api package body code in portal ?
    thanks in anticipation.
    SD,

    PL/SQL Wrap Utilityhttp://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/c_wrap.htm#LNPLS016
    Note, however that you cannot revert back to original un-wrapped code from a code that has been wrapped. You would need access to the original source files to get the original source code.

  • Force encryption on SQL Server not working?

    Hello Everyone,
    I'm running SQL Server 2008 64-bit. I've installed a self-signed cert on the box and set  "Force Encryption"  and restarted SQL server. 
    I setup a client machine to trust the authority of the cert installed on the server. When I connect to that SQL server from SSMS from a client machine and select the "encrypt connection" option in the client Connection properties, SSMS correctly complains
    that the cert on the server does not match the computer name I asked to log into . This is because, although the cert is trusted, the dns name dos not match the CN in the cert <- Perfect, exactly what I am expecting.
    When I connect to the same SQL server from the same client but  UNCHECK "encrypt connection" on the client, I'm able to login. Considering I've checked the "Force Encryption" on the server, the server should have rejected the connection. Why not?
    Ameer Deen

    Hi all,
    We are implementing a Merge Synchronization solution which involves three SQL Servers located on three Azure locations worldwide and one on-premises location. We need to secure communications between all servers. We are evaluating the encryption of all server
    communications through SSL:
    http://technet.microsoft.com/en-us/library/ms191192.aspx
    When we configure one server (let’s call it server A) to accept only encrypted connections (with Force Encryption=Yes) we still can connect from other server (let’s call it server B) that do not have the certificate installed. We would expect the server
    B to fail in the attempt of connect as server A should only accept encrypted communications and those should need the certificated to encrypt/decrypt everything (commands and data).
    We have also review the following forum post that is very similar to this one:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bde679d9-ff83-4fa7-b402-42e336a97106/force-encryption-on-sql-server-not-working
    In all cases the Microsoft answer is:
    “When the
    Force Encryption option for the Database Engine is set to YES, all communications between client and server is encrypted no matter whether the “Encrypt
    connection” option (such as from SSMS) is checked or not. You can check it using the following DMV statement”
    When we run the provided DMV statement to check if encryption is enabled:
    -- To check whether connections are encrypted between server and clients
    SELECT encrypt_option
    FROM sys.dm_exec_connections
    We get “TRUE”. So theoretically encryption is enabled.
    Then:
    Why can we run SQL statements against server A from server B (with SSMS) without any certificate?
    Are we wrong when we expect server A to refuse any client that do not have the right certificate?
    How can server B, without any certificate, decrypt the data encrypted by server A?
    Our intention is to encrypt all server in the same way so all of them will accept only encrypted communications. We are assuming that the Merge Agent will be able to communicate with the Publisher and the Subscriber through this encrypted environment. May
    anyone please confirm ti?
    Thanks for your help.
    Best Regards
    Benjamin Moles

  • Send encrypted data from oracle 11g to Ms SQL Server 12

    Hi every body,
    we want to send encrypted data from oracle 11g to Ms SQL Server 12:
    - data are encrypted to oracle
    - data should be sent encrypted to Ms SQL server
    - data will be decrypted in Ms SQL server by sensitive users.
    How can we do this senario, any one has contact simlare senario?
    can we use asymetric encription to do this senario?
    Please Help!!
    Thanks in advance.

    Hi,
      What you want to do about copying data from Oracle to SQL*Server using insert will work with the 12c gateway.  There was a problem trying to do this using the 11.2 gateway but it should be fixed with the 12c gateway.
    If 'insert' doesn't work then you can use the SQLPLUS 'copy' command, for example -
    SQL> COPY FROM SCOTT/TIGER@ORACLEDB -
    INSERT SCOTT.EMP@MSQL -
    USING SELECT * FROM EMP
    There is further information in this note available on My Oracle Support -
    Copying Data Between an Oracle Database and Non-Oracle Foreign Data Stores or Databases Using Gateways (Doc ID 171790.1)
    However, if the data is encrypted already in the Oracle database then it will be sent in the encrypted format. The gateway cannot decrypt the data before it is sent to SQL*Server.
    There is no specific documentation about the gateways and TDE.  TDE encrypts the data as it is in the Oracle database but I doubt that SQL*Server will be able to de-encrypt the Oracle data if it is passed in encrypted format and as far as I know it is not designed to be used for non-Oracle databases.
    The Gateway encrypts data as it is sent across the network for security but doesn't encrypt the data at source in the same way as TDE does.
    Regards,
    Mike

  • SQL Server "Force Encryption"

    We are trying to setup a force encryption on SQL Server 2012 configuration manager and wondering if the wild card certificate works for this.  
    I am not if that is the issue but the cert installed on SQL server is not showing up in the dropdown of Protocols for MSSQLSERVER Propertis Certificate tab.

    If the Force Encryption option for the Database Engine is set to YES, all communications between client and server is encrypted no matter whether the “Encryptconnection” option is checked or not.. please
    check the below links for more details..
    http://blogs.msdn.com/b/dataaccess/archive/2005/08/05/448401.aspx
    http://support.microsoft.com/kb/316898
    -- To check whether connections are encrypted between server and clients
    USE master
    GO
    SELECT encrypt_option FROM sys.dm_exec_connections
    GO
    http://www.sqlservercentral.com/blogs/basits-sql-server-tips/2012/07/16/encrypting-connections-to-sql-server/
    http://technet.microsoft.com/en-us/library/ms191192.aspx
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bde679d9-ff83-4fa7-b402-42e336a97106/force-encryption-on-sql-server-not-working?forum=sqlsecurity
    Raju Rasagounder Sr MSSQL DBA

  • Connecting to SSL encrypted MS SQL Server

    Hello,
    We're looking into the possibility of encrypting our MS SQL
    Servers (2000 and 2005) with SSL (as documented:
    http://msdn.microsoft.com/en-us/library/ms189067.aspx),
    but wanted to make sure that this wasn't going to cause any
    connectivity issues at the ColdFusion side first.
    Our environment consists of CF 6, 7 and 8 servers (all
    running the latest and greatest updaters), SQL Servers are 2000 and
    2005 environments.
    Does anyone have any thoughts on this? Problems I may run
    into? Has anyone here done this?
    Thanks,
    Matt

    Nobody encrypts their MS SQL servers with SSL??

  • Partner perspectives: Pen testing, refurbished vs. used hardware, SQL encryption

    This week, vendors in the Spiceworks Community talked over questions to ask yourself before penetration testing, the latest encryption offerings for SQL Server 2016, and the merits of mobile fleet management.After examining a few governmental institutions,Acquiashared its findings on what well-known public institutions are using open source software, whileAventis Systemsshed light on the value of refurbished goods for SMBs. SolarWindstook a more critical approach to governmental IT, debating the continued merits of the IT generalist, while F5 Networksquestioned the role of state in microservices and networks. Pertinent questions about penetration tests for SMBs
    Image credit:Tasashi Levent-LeviSpamTitan Technologies– You can't just go around testing everything you see – that's not how it works. There are standards and procedures to this...
    This topic first appeared in the Spiceworks Community

  • Goldengate 11.1.1.1 Oracle 11.2 Encrypted tablespace

    Please advise why this error is showing and help us on this situation
    Line: -----
    Windows 2008 x64
    Oracle 11.2.0.1 x64
    Oracle Goldengate 11.1.1.1 x64
    ++++++++++++SOURCE++++++++++++++
    sql>conn / as sysdba
    **************CREATE TABLESPACE AND TABLE********************
    CREATE TABLESPACE encrypted_ts
    DATAFILE 'd:\oradata\test\encrypted_ts01.dbf' SIZE 128K
    SIZE 15M
    AUTOEXTEND ON NEXT 20M
    MAXSIZE UNLIMITED
    LOGGING
    ENCRYPTION USING 'AES192'
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO
    DEFAULT NOCOMPRESS STORAGE(ENCRYPT);
    CREATE TABLE TESTA
    ID NUMBER,
    NAME VARCHAR2(16 CHAR)
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    cmd> mkstore -wrl d:\test\wallet -createEntry ORACLE.SECURITY.CL.ENCRYPTION.ORACLEGG
    Enter <secret> : test
    cmd>mkstore -wrl d:\test\wallet -viewEntry ORACLE.SECURITY.CL.ENCRYPTION.ORACLEGG
    ORACLE.SECURITY.CL.ENCRYPTION.ORACLEGG = test
    sql>ALTER SYSTEM SET ENCRYPTION WALLET CLOSE IDENTIFIED BY 'welcome1';
    sql>ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY 'welcome1';
    Compile dbms_internal_clkm package.
    sql>@prvtclkm.plb
    sql>GRANT EXECUTE ON SYS.DBMS_INTERNAL_CLKM TO GGS_OWNER;
    **********************************GOLDENGATE******************************************
    ggsci>dblogin userid ggs_owner, ggs_owner
    ggsci>add extract ext2ts, tranlog, begin now
    ggsci>add rmttrail D:\ggs\dirdat\ts, extract ext2ts
    ggsci>ENCRYPT PASSWORD test ENCRYPTKEY DEFAULT
    Using default key...
    Encrypted password: AACAAAAAAAAAAAEAZAMEFCPGPEOHYDHE
    ggsci>edit params ext2ts
    EXTRACT ext2ts
    USERID ggs_owner, PASSWORD ggs_owner
    RMTHOST 192.168.0.2, MGRPORT 7809
    RMTTRAIL D:\ggs\dirdat\ts
    DBOPTIONS DECRYPTPASSWORD AACAAAAAAAAAAAEAZAMEFCPGPEOHYDHE ENCRYPTKEY DEFAULT -- ???
    TABLE TESTA;
    +++++++++++++TARGET++++++++++++++++
    sql> conn / as sysdba
    **************CREATE TABLESPACE AND TABLE********************
    cmd>
    CREATE TABLESPACE ts
    LOGGING DATAFILE 'd:\oradata\test\ts.dbf'
    SIZE 15M
    AUTOEXTEND ON NEXT 20M
    EXTENT MANAGEMENT
    LOCAL SEGMENT SPACE
    MANAGEMENT AUTO;
    CREATE TABLE TESTA
    ID NUMBER,
    NAME VARCHAR2(16 CHAR)
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    ************************************GOLDENGATE*****************************************
    ggsci>DBLOGIN USERID ggs_owner, PASSWORD ggs_owner
    ggsci>ADD CHECKPOINTTABLE GGS_OWNER.CHKPTAB
    ggsci>ADD REPLICAT rep1, EXTTRAIL D:\ggs\dirdat\ts, CHECKPOINTTABLE GGS_OWNER.CHKPTAB
    ggsci>EDIT PARAMS rep1
    REPLICAT rep1
    ASSUMETARGETDEFS
    USERID ggs_owner, PASSWORD ggs_owner
    MAP GGS_OWNER.TESTA, TARGET GGS_OWNER.TESTA;
    +++++++++++++TARGET+++++++++++++++
    ggsci>start replicat rep1
    +++++++++++++SOURCE+++++++++++++++
    ggsci>start extract ext2ts
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!EXTRACT - REPORT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    2011-07-05 11:46:50 ERROR OGG-01028 ORA-06521: PL/SQL: Error mapping function
    ORA-06512: at "SYS.DBMS_INTERNAL_CLKM", line 3
    ORA-06512: at line 1.
    2011-07-05 11:46:50 ERROR OGG-01668 PROCESS ABENDING.
    Edited by: Oyunbold on Jul 7, 2011 3:25 AM
    Edited by: Oyunbold on Jul 19, 2011 6:09 PM

    Yesterday, I met the same problem. How do you solve it ? Plz, help me.
    OS : AIX 5.3
    DB : Oracle 11.1.0.7
    OGG : 11.1.1.1
    2011-09-06 15:26:56 INFO OGG-01515 Oracle GoldenGate Capture for Oracle, eora01.prm: Positioning to begin time Sep 2, 2011 6:50:49 PM.
    2011-09-06 15:26:56 ERROR OGG-01028 Oracle GoldenGate Capture for Oracle, eora01.prm: ORA-12427: invalid input value for FLAGS parameter ORA-06512: at "SYS.DBMS_INTERNAL_CLKM", line 3 ORA-06512: at line 1.
    2011-09-06 15:26:56 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, eora01.prm: PROCESS ABENDING.
    Our Extract configuration is below :
    EXTRACT EORA01
    USERID ogg, PASSWORD AACAAAAAAAAAAADAHBMDHBECUCZBPIYE, encryptkey XKEY
    DBOPTIONS DECRYPTPASSWORD AACAAAAAAAAAAAIARIXFKCQBMFIGFARA ENCRYPTKEY DEFAULT
    ENCRYPTTRAIL
    exttrail ./dirdat/ea
    EOFDELAYCSECS 50
    FLUSHCSECS 50
    DISCARDFILE ./dirrpt/EORA01.DSC, APPEND, MEGABYTES 500
    DISCARDROLLOVER AT 07:30
    TABLE TVANBT.TLF_BUYS_MISS;
    ...

Maybe you are looking for

  • Family sharing notifications freezing other devices

    Hello, We are having the strangest problem with family sharing.  When my 13 year old daughter, who is set up for Ask To Buy, requests to download an app, or purchase an in-app, my wife and I both receive notifications on our phones and iPads.  Howeve

  • Opening a file from bridge

    How do I set the preference to have Bridge open files automitically into CS5 when I double-click on it?

  • Fatal error in data pump import

    Hi Please help me in solving this error while importing data from dmp file Import: Release 10.1.0.2.0 - Production on Thursday, 15 February, 2007 3:54 Copyright (c) 2003, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Editi

  • Template problem on Intel Mac

    Hi All, I just jumped ship,and have started developing on and working with Mac's, so go easy on me! I am trying to use the "Wedding Classic Cover" template (First of three) and when I drag an asset to the "Content Here 1" area on the menu, it will no

  • Audigy 2 ZS and Windows Vi

    I need complate?CD or ISO of Audigy 2 ZS for windows vista. I downloaded the driver for vista but I could not use old?medisource?and audio console applications because?I get errors. and I want to use old software because I could not?found software fo