How to convert Oracle DB SQL?

Hello everyone, nice to meet you!

First of all I apologize for:

-my pretty terrible English

-the fact that I am a complete novice in databases and that my question may sound like proof full for most of you

-the fact that there are probably a billion discussions on this subject, but after many hours lost in the research in this forum or elsewhere, I just dropped...

So now that these points are mentioned, here's my problem with my own green words:

Goal: Be able to log in and then convert it using SSMA SQL restore an Oracle DB from a dump file (.dmp).

My first step was to be able to install Oracle Databese Express 11 GR 2.

Then, I installed MASA and launch it to reach my goal.

To connect to Oracle, I now have to choose a mode of connection, including one of these two ( https://msdn.microsoft.com/en-us/library/hh313203(v=sql.110).aspx text):

  1. If you select the Standard mode, provide the following values:
    1. In the server name box, type or select the name or the IP address of the database server.
    2. If the database server is not configured to accept connections on the default port (1521), type the port number that is used for connections in the Oracle Server port box.
    3. In the Oracle SID , enter the system identifier.
    4. In the user name box, enter an Oracle account that has the necessary permissions.
    5. In the password box, enter the password for the specified username.
  2. If you select the TNSNAME mode, provide the following values:
    1. Of the login , enter connect (aka TNS) of the database identifier.
    2. In the user name box, enter an Oracle account that has the necessary permissions.
    3. In the password box, enter the password for the specified username.

.. .but I don't know even how to find the SID of the Oracle... I tried with the name of the server: localhost, Oracle SID: XE and SYSTEM and password, but it didn't work.

So I tried with the TNSNAME, identifier of connection mode: XE (found on my default tnsnames.ora file), SYSTEM/password and it still does not work.

It would be really nice of you to reflect on this and share your ideas on how to get through this stage of the process and the weather, you have an idea to do the rest (BD restoration/conversion) too!

Thank you very much.

VMAT wrote:

EdStevens wrote:

[...] or if the database IS local, an ORACLE_SID incorrectly specified.  [...]

This is my point of view. I don't know what means the "ORACLE_SID". "XE"? Something else? I don't know where to find it!

Everything we've seen up to this says that your ORACLE_SID is XE.

BTW, ORACLE_SID is the name of an environment variable.  The value associated with this variable should be "XE".

As I said, I'm stuck at level zero here.

I certainly miss to run a crucial step for, I don't know, to create a standard database where I could connect or something I don't know, but the fact is that I can not even use impdp on my .dmp file because I can't seem to log on before...

Everything that I did is to install Oracle DB Express and MASA in practice. I missed something to do after that?

If your installation of Oracle DB Express went well, you should have a database named XE and you should be able to connect to it.

Tags: Database

Similar Questions

  • How to convert JAVA. SQL. Date the DATE in the format DD/MM/YYYY to DD/MM/YYYY

    I use an informix database that accepts the value of date as a DATE format...
    the other part of my app takes date from the field in the format DD/MM/YYYY... so I have to convert my java.sql.date in marker AAAA/MM/JJ JJ/MM/AAAA marker of the same type before inserting into db...
    but by using the parse method in SimpleDateFormat class can get the result format java.util.date...
    and also using method format may result in the conversion of strings...

    public class Dbop {
        static final java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat("dd/MM/yyyy");
        public static void main(String[] args) throws Exception {
            java.util.Date ud = fmt.parse("31/12/2010");
            java.sql.Date sd = new java.sql.Date(ud.getTime());
            String formattedSqlDate = fmt.format(sd);
            System.out.println("result:"+formattedSqlDate);
        }
    }
    
  • How to convert Oracle Forms 11 g module in XML format

    Hi all

    I developed some modules using the Oracle 11 g 2 forms generator. I would like to convert these modules at XML(for comparing). Can someone let me know the process to do so, in the form of 11g?

    Thanks in advance.

    Did you by chance tried to adapt a solution of 10g certainly found in this forum to your version? Since oracle dumped the version numbers in their executeables (ifcmp60 became frmcmp and so on) the names of the tools are almost the same in each version. frmf2xml.bat is located in $INSTANCE_HOME/bin in your installation away 11 GR 2 Developer.

    see you soon

  • How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    How to convert the hierarchical query of SQL Server (CTE) to Oracle?

    WITH cte (col1, col2) AS
    (
    SELECT col1, col2
    FROM dbo. [tb1]
    WHERE col1 = 12
    UNION ALL
    SELECT c.col1, c.col2
    FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
    )
    DELETE one
    FROM dbo. [tb1] AS an INNER JOIN b cte
    ON a.col1 = b.col1

    Hello
    Something like this maybe:

    DELETE FROM dbo.tb1 a
     WHERE EXISTS (
      SELECT 1
        FROM dbo.tb1 b
      WHERE a.co11 = b.col1
          AND a.col2 = b.col2
       START WITH b.col1 = 12
      CONNECT BY b.col2 = PRIOR b.col1)
    

    Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.

  • How to get an accurate sql query in oracle?

    Hi all

    Hope it's right,

    Mr President, I was using a SQL query that can be found here:

    Declare @nshiftmax datetime

    Set @nshiftmax = convert (time, DATEADD(N,1439,0))
    impression @nshiftmax

    When extracting the result is 23:59 01/01/1900

    and a single request more is there

    Declare @nshiftmax datetime

    Set @nshiftmax = convert (time, DATEADD (N, 0, 0))
    impression @nshiftmax

    When extracting the result is 01/01/1900 12:00 a.m..

    How the same oracle query result.

    Thanks in advance.

    Like this...

    SQL> select to_char(date '1900-01-01' + 1439/(24*60),'DD/MM/YYYY HH:MI AM') from dual;
    
    TO_CHAR(DATE'1900-0
    -------------------
    01/01/1900 11:59 PM
    
    SQL> select to_char(date '1900-01-01' + 0/(24*60),'DD/MM/YYYY HH:MI AM') from dual;
    
    TO_CHAR(DATE'1900-0
    -------------------
    01/01/1900 12:00 AM
    
  • convert to oracle pl/sql

    Hi all

    can - anybody know how convert transact sql from sql server to oracle pl/sql.is any them tool or whatever is available.

    Kind regards
    Ankur

    Frankly - it's all just stupid to convert T - SQL in PL/SQL.

    There are significant differences between these two. PL is a real procedural and declarative language. It has features of OBJECT-oriented programming. It is absolutely nothing like T - SQL.

    Oracle is also different from SQL-Server. There are conceptual major and fundamental differences. After all, why do you buy Oracle customers? Because it's just like SQL-Server? Or because it is not and is very different from SQL-Server?

    Oracle is a very poor imitation of SQL-Server. It has no sense to treat it as SQL-Server.

    And in this vein, it is meaningless to implement the fundamental concepts of the T - SQL and SQL-Server by converting in PL/SQL. The result will probably happen again worse than what he has done in SQL Server. He will not be able to scale. It will be difficult to maintain. It will not use the features of Oracle that puts a technically superior product of RDBMS of SQL Server to Oracle.

    It only converts SQL Oracle server. A ports. And this is refactoring and redesign to better utilize the features of Oracle. Another thing, how can you only achieve the perceived benefits and the benefits of the passage of the SQL for Oracle Server?

  • How to convert sql report interactive report

    Hi all

    I have a Sql report and I want to convert in interactive report. I found the option at the top to the right side "Interactive report migrate" but only 3 option to pass parameters.

    In my SQL report (Edit button) is here and I'm passing 6 values through this button change, how can I migrate my SQL report interactive report? Please suggest me...

    Thank you

    Xandot wrote:

    In the report links SQL query looks like:

    1. case Type
    2. When 3 then
    3. (select the T_STYLE Style where STYLEID =?)
    4. When 1 then
    5. 'Edit'.
    6. else '||','|| ||','|| ||','|| ||',30>Edit'
    7. end
    8. When 2 then '| «, » || ||','|| ||','|| ||',30>Edit'
    9. When 1 then '| «, » || ||','|| ||','|| ||',30>Edit'
    10. end as change

    How to implement above interactive links, until now that I created the link on interactive using links like report:

    But here its me allow only a single URL, how to put different URLS of in accordance with the condition, please suggest me.

    There is no declarative support for generating links conditionally to line level in interactive reports (or indeed in the standard reports). Set the IR link column property to exclude the link columnand generate the link in the request in the original report. Set the Type of display attribute for the column Edit to report Standard column.

  • How to convert a SQL with variable

    Can Hello, please how I convert the underside with a dominant

    I need to be able to generate a plan to explain it, I think I should use cast.



    SELECT TO_NUMBER (OIL. REBALANCE_ORDER_ID UNIQUE_ID),
    OIL. ORDER_QTY,
    OIL. ORDER_TYPE,
    OIL. ORDER_SIDE,
    OIL. POSITION_TYPE,
    OIL. AVAILABLE_QTY AVAILABLE_QUANTITY,
    OIL. GROSS_AMOUNT ORDER_AMT,
    OIL.NET_AMOUNT NET_AMOUNT,
    OIL. FEE_AMT FEE_AMOUNT,
    OIL. ACCRUED_INTEREST_AMT ACCRUED_INTEREST
    TABLE (: B6) OIL

    >
    I need to be able to generate a plan to explain it, I think I should use cast.

    SELECT TO_NUMBER (OIL. REBALANCE_ORDER_ID UNIQUE_ID),
    OIL. ORDER_QTY,
    OIL. ORDER_TYPE,
    OIL. ORDER_SIDE,
    OIL. POSITION_TYPE,
    OIL. AVAILABLE_QTY AVAILABLE_QUANTITY,
    OIL. GROSS_AMOUNT ORDER_AMT,
    OIL.NET_AMOUNT NET_AMOUNT,
    OIL. FEE_AMT FEE_AMOUNT,
    OIL. ACCRUED_INTEREST_AMT ACCRUED_INTEREST
    TABLE (: B6) OIL
    >
    You're right - mount the bind as the appropriate type. I have a SQL type named emp_table_type so that it works

    explain plan for select * from table(cast (:e1 as emp_table_type))
    

    The models involved are

    CREATE OR REPLACE TYPE SCOTT.emp_scalar_type as object
      (EMPNO NUMBER(4) ,
       ENAME VARCHAR2(10),
       JOB VARCHAR2(9),
       MGR NUMBER(4),
       HIREDATE DATE,
       SAL NUMBER(7, 2),
       COMM NUMBER(7, 2),
       DEPTNO NUMBER(2)
      )
    /
    
    CREATE OR REPLACE TYPE SCOTT.emp_table_type as table of emp_scalar_type
    /
    
  • pl sql - how to set Oracle concurrent Request Status = error

    I registered a custom as a competitor to Oracle pl sql block. I would like to raise an EXCEPTION that will be the end of employment in an error state if a condition is met. How can I do this? Here is a snippet of code that I have:
    EXCEPTION
           WHEN v_nodata THEN
                    <what command can I put here?  I want the concurrent request job to error so that the next pl sql block doesn't get executed.>
          when OTHERS THEN NULL;
    END;
    /
    Thank you!

    You can use RAISE; (when you are already within an exception block and want to raise the same error) or

    RAISE_APPLICATION_ERROR(-20000, 'My error message goes here');
    

    Replace - 20000 for any negative number between - 20000 and-20999 your error code.

    http://download.Oracle.com/docs/CD/E11882_01/AppDev.112/e10472/errors.htm

    Edit:
    If you are talking about registration of an error code to a name, you must use the PRAGMA EXCEPTION INIT.

    DECLARE
      deadlock_detected EXCEPTION;
      PRAGMA EXCEPTION_INIT(deadlock_detected, -60);
    BEGIN
      NULL; -- Some operation that causes an ORA-00060 error
    EXCEPTION
      WHEN deadlock_detected THEN
        NULL; -- handle the error
    END;
    

    Published by: fsitja on December 10, 2009 16:18

  • [Oracle 8i] How to convert a string (timestamp) in a date?

    I find it difficult to know how to convert a string to a date time stamp (or possibly several).

    The timestamp is 20 positions, character (NOT NULL, CHAR (20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = year, M = month, D = day, M = Minutes, S = seconds and U = microseconds

    The reason why I want to convert it is so that I can compare a timestamp to each other (that is, I want to be able to find the MIN (timestamp), MAX (timestamp) and make comparisons of inequality).

    Is this possible?

    Thanks in advance for the help on this!

    Hello

    As Damorgan said, if all you want to do is find which is the earlier or later, then you can just compare the strings: they are in a format where it works.

    If you need to do other things, such as compare to today date or see the difference between two of your lines of days, you will need to convert it to date. (He has no reason to convert them to numbers).

    A new TIMESTAMP data type, which manages the fractions of a second, was introduced in Oracle 9.
    Since you use Oracle 8 (depending on your subject line), or it must be
    (1) ignores the microseconds, or
    (2) use a separate column for microseconds.

    Whatever it is, use TO_DATE to convert the first 14 characters in DATE:

    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )
    

    where txt is your column of type CHAR.
    To convert microseconds to a number (between 0 and 999999):

    TO_NUMBER (SUBSTR (txt, 15))
    
  • Portal Oracle Gold: how to convert insert them in the update

    In my db goal there is no delete replicated.

    But sometimes, the same key is removed and inserted in the future.

    In this case, how to convert insert them in the update?

    Kind regards

    William

    I have

    If I use this option:

    RESOLVECONFLICT (INSERTROWEXISTS, (BY DEFAULT, OVERWRITE))

    ???

  • How to convert numtodsinterval in minutes?

    Thanks in advance.

    I have a question for which I check the time elapsed to run a batch job.

    Select numtodsinterval (avg (Last_DATE_UPDATE - STARTDATE), «minutes») avg_time
    of job_run where job_id = 'MMCD. "

    I get:
    AVG_TIME
    ----------------------------------------
    + 00:00:04.254901175 0000000000
    1 selected line.

    How to convert this to the Minutes that could 100 or 20 or more. I try to get a whole number. Thank you

    First of all, your statement is logically false (like syntax don't go too). Oracle date arithmetic uses the day as unit of measure. If date Last_DATE_UPDATE - STARTDATE differnce is expressed in days, while you say numtodsinterval to treat like minutes. Quick glance:

    SQL> select numtodsinterval(to_date('11/4/08','mm/dd/yy') - to_date('11/3/08','mm/dd/yy'),'minute') min,
      2         numtodsinterval(to_date('11/4/08','mm/dd/yy') - to_date('11/3/08','mm/dd/yy'),'day') day
      3    from dual
      4  /
    
    MIN
    ---------------------------------------------------------------------------
    DAY
    ---------------------------------------------------------------------------
    +000000000 00:01:00.000000000
    +000000001 00:00:00.000000000
    
    SQL> 
    

    As you can see, your code treats also 4 November andf November 3 as a minute difference, while it's a day. In any case, you could:

    SQL> with t as (
      2             select TO_DATE('1997-01-31 09:26:50','YYYY-MM-DD HH24:MI:SS') start_dt,
      3                    TO_DATE('1997-01-31 10:00:00','YYYY-MM-DD HH24:MI:SS') end_dt
      4               from dual
      5            )
      6  select TRUNC((end_dt - start_dt) * 1440)
      7    from t
      8  /
    
    TRUNC((END_DT-START_DT)*1440)
    -----------------------------
                               33
    
    SQL> 
    

    SY.
    P.S. Or you could round up using ROUND instead of TRUNC.

  • How to convert string to datetime in the transformation of the Ombudsman

    Hello

    I am getting error below when inserting the data in the database using the database.

    Exception occurred when the link was invoked. Exception occurred during invocation of the JCA binding: "JCA binding run reference"insert"operations have to: DBWriteInteractionSpec Execute Failed Exception." insertion failed. The descriptor name: [InsertPayload.XxohInsertStgTable]. Created by Exception [EclipseLink-3001] (Eclipse - 2.3.1.v20111018 persistence Services - r10243): org.eclipse.persistence.exceptions.ConversionException Description of the Exception: object [2015-09-14 15:19:51], class [class java.lang.String], couldn't be converted [class java.sql.Timestamp]. Inner exception: LINK. JCA-11636 couldn't convert Timestamp Exception. Cannot convert a string value in the xml file to a java.sql.Timestamp. Although the databases accept strings representing the timestamps in a variety of formats, the adapter only accepts strings that represent xml ISO dateTime format. The input value must be in the format XS: DateTime to iso 8601, i.e. YYYY-MM - DDTHH:MM:SS.sss - 07:00. Please see the logs

    In the transformation of the mediator, the Source element is a string

    < xs: element name = "CREATED_DATE" type = "xs: String" > < / xs: element >

    Target is of type dateTime

    < xs: element name = "Creation_Date" type = "xs: DateTime" minOccurs = "0" nillable = "true" / >

    To avoid the above error, I used < xsl: value-of select ='xp20:format - dateTime (/CREATED_DATE, "[Y0001]-[M01]-[D01] [H01]: [m01]: [s01]")'/ > in the transformation, but its does not work. The value is blank display after processing.

    Please suggest me how to solve this problem.

    Thank you

    Sunita

    Unfortunately, the format required by the dateTime format is YYYY-MM - DDTHH:MM:SS.sss

    You can use the substring, and on the entry's concat function to create YYYY-MM - DDTHH:MM:SS.sss

    See formatting string to date in BPEL

  • How to install utilities PL/SQL Developer SQL v1.6.0 in the database

    in fact I'm looking

    HTTP_UTIL_PKG

    CSV_UTIL_PKG

    to download excel file in Oracle 11 g r2 11.2.0.1.0 feature

    Downloaded from https://code.google.com/p/plsql-utils/downloads/detail?name=plsql-utils-v160.zip & can = 2 & q =

    How to install utilities PL/SQL Developer SQL v1.6.0 in the database

    If we install in sys or particular schema in which I need to use

    and how to run the script

    ReemaPuri wrote:

    in fact I'm looking

    HTTP_UTIL_PKG

    CSV_UTIL_PKG

    to download excel file in Oracle 11 g r2 11.2.0.1.0 feature

    Downloaded from https://code.google.com/p/plsql-utils/downloads/detail?name=plsql-utils-v160.zip&can=2&q=

    then download the zip file and then extract the contents

    Both are contained in it.

    Then add them to the schema of your choice.

  • convert oracle.jbo.domain.number in full

    Hello

    I use jdeveloper 11.1.2.4.0

    Can anyone help on how to convert the oracle.jbo.domain.number in full?

    Kind regards

    Steve

    New Integer (some_number.intValue ());

Maybe you are looking for