Outgoing number comme.01 in oracle select number in mysql

Ive got a metric schema in oracle, I work the size of backups and feed in a reporting tool.

Ive created a link to mysql, created a view of backups which returns the size of the database.   It runs in mysql. I can see the size.  But the selection of the view in oracle to the link HS, the number going to comme.01.

I tried the char conversion and adding text to it.  Same problem., works in mysql, custom in oracle.  Known issue?

Select vw_backups in mysql

I get

= FULL backup

size = 320G

In oracle

Select * from vw_backups@mysql_link

= FULL backup

size = .01G

This is Mike's response.    My apologies to occupy your time on this one and your time is much appreciated.  the following link explains.  I would have thought that using the view with the pre-built data and sum could have returned successfully, but the loggin user privileges must dictate that can see the point of view.  a bit like a dba_objects view object in oracle.

https://dev.MySQL.com/doc/refman/5.0/en/information-schema.html

"Each MySQL user has the right to access these tables, but can only see the lines in the tables that correspond to the objects for which the user has appropriate access privileges."

Tags: Database

Similar Questions

  • How to import the selected tables from MySQL to Oracle

    Hello world:

    How can I import tables from MySQL to Oracle? I have more than 180 tables in my DB (MySQL), but I copy only 12 of them to ORACLE... rigth now I do it manually, using SQL Developer (rigth clicking on the picture icon and copy to Oracle) but now I need to do this automatically every 4 hours...

    I read on the dblink option, but I don't know if this is the best for this case...

    I appreciate all help.

    Best regards
    Jack

    Hi Jack,

    I think that with a db-link you can define an automated task (PL/SQL + programmer).
    We use a db-link to Oracle's RDBMS to MySQL. So we have no experience.
    We have created the db-link like http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/

    Heike cordially

  • Oracle, will add the Mysql on this forum

    Oracle If Indent add mysql on this forum?

    I don't think that oracle intend to do because they experience:
    forums. MySQL.com
    but you can email them and ask, and I think that the guys here can help you too about this issue
    Kind regards
    Mohamed

  • Gateway ODBC Oracle SELECT Sybase fails on large column

    OS: CentOS 64-bit 5.8
    DB: Oracle XE 11 GR 1 64-bit material
    Gateway: Oracle Gateway for ODBC 64-bit
    Database and the entrance door are on the same Linux server.
    Connect to the remote server from Sybase SQL Anywhere 10 on Windows XP.
    Using the SQL Anywhere 11 odbc and unixODBC on Linux server handler driver.
    tool isql connects without any problems.
    A LISTENER, service for db and the gateway on the same port.
    ===================================
    Via SQL * Plus, the following error occurs...

    SQL > select * from mytable@dblink;
    Select * from mytable@dblink

    ORA-02070: dblink database does not support the outer joins in this context

    Gateway don't like the 'great' column which is varchar (3270) length. It is also the only
    the table column that is of type varchar.
    Remove this column and SELECT works very well.

    Here is the initdblink.ora file:

    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = dblink
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_FDS_TRACE_LEVEL = 255

    HS_LANGUAGE = AMERICAN_AMERICA. WE8ISO8859P1
    HS_NLS_NCHAR = UTF-8

    #
    # ODBC specific environment variables
    #
    Set ODBCINI=/etc/odbc.ini

    Please advise...

    Published by: user601798 on October 17, 2012 07:09

    Published by: user601798 on October 17, 2012 07:09

    Published by: user601798 on October 17, 2012 07:13

    The gateway of the trace that shows "12 VARCHAR N 3270 3270 0 / 0 0 0 200 DISCPLN_COMM" I expect the column is mapped to a varchar2 Oracle that accuracy does not exceed the limit of varchar2 (4000).
    But there could be a risk that the database Oracle uses Unicode HOCXU_DB_CSET = 873 that could result in a tripling of the varchar columns because some Unicode characters require 3 bytes. When this product then the column discpln_comm is mapped to a data type long Oracle and there are dozens of restrictions when it comes well of data types.

    Published by: kgronau on October 19, 2012 07:37

    A previous update, you said:
    I noticed in my PL/SQL Developer IDE that this 1 column returned as a LONG. (?)
    This means that a tripling of the precision could happen.

    Could you please add these 2 parameters to the file init Bridge:
    HS_KEEP_REMOTE_COLUMN_SIZE = ALL
    HS_NLS_LENGTH_SEMANTICS = CHAR

    Now open a new SQL * Plus term and describe the table in SQL * more (desc RSCCC.SR_SPEC_PGM_SPEC_ED @) and to report to its release. Is the column that discpln_comm is always mapped to a long column?

    If so, then change the parameters of 2 gateway for:
    HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
    HS_NLS_LENGTH_SEMANTICS = CHAR
    Open a new SQL again * more session and describe the table again. DISCPLN_COMM is always mapped to a long?

    Published by: kgronau on October 19, 2012 07:43

  • COMMIT statement for a selected line

    Hello
    I'm working on an OAF page where there is a table region.
    This area of the table is linked to a VO and VO at an OA.
    I plugged on an EO because the user must be able to enter data directly on the table.

    I gave a button down save so that clicking on it, you need to a handler function in my AM.

    In the manager function, I getAllFetchedRows in a table, then one by one, I perform checks and then save by calling getOADBTransaction.commit after (vo.setAttribute) with the corrected values.


    Now my problem is that I use the same OS used in the above table when recording. So even if I want to save the line by line after audits by programming, the time getOADBTransaction.commit is called for the first line, all lines is saved without even going through the controls.

    Is there another way to call the validation so that it only records the line passed and all the lines.

    Concerning
    Hawker

    Raj,

    As the method getOADBTransaction.commit is called it will hire all the rows in your table, as you have in the annex EO based VO.

    For your condition, you will need to set the commit to the final loop instead of put for each iteration.

    Kind regards
    GYAN

  • [Space oracle] - selects all customers in a buffer of demi-mille of co

    Hi, people,.
    I'm having a problem with SQL statemnt to select all customers in a buffer of demi-mille of the competitor. In fact, I don't know how to build the SQL statement.

    If anyone can help, thanks in advance.

    There are several ways to achieve this. You can use SDO_NN, but in this case I'd stick probably just using a buffer.

    Assuming that you have two tables named CUSTOMER and COMPETITOR each with a GEOMETRY of type SDO_GEOMETRY that contains a representation of the column feature point...

    SELECT /*+ ORDERED */ cust.*
    FROM competitor comp, customer cust
    WHERE sdo_anyinteract(cust.geometry, sdo_geom.sdo_buffer(comp.geometry, , )) = 'TRUE'
    AND comp.id = 
    

    If you want to extend this to return customers by order of distance from the competitor, then you might be better off using SDO_NN & SDO_NN_DISTANCE. There are many examples in the documentation. Also other examples by searching this forum for those keywords.

  • Why can't attach files to outgoing emails? The file to select appears locked.

    HAVING HAD PROBLEMS WITH TB I'M THINKING OF DUMPING OF ALL OF THE USELESS APPLICATION. THE HELPLINE FORUM IS PRETTY MUCH USELESS AND TOTALLY CONFUSED. I CAN NOT EVEN LOG INTO MY 'ACCOUNT' EVEN AFTER THREE PASSWORD RESETS "SUCCESSFUL." I HAVE NOW HAD CREATE A NEW ACCOUNT TO POST THIS - AND YOU CAN EVALUATE MY FRUSTRATION IN THE STYLE OF MY USER NAME. I HOPE SINCERELY THAT AT ONE POINT I'M GOING TO FIND OUT WHY MY TB E-MAIL SYSTEM HAS LOCKED SOMEHOW THE ATTACHMENT FOR THE WRONG FILE, SINCE IT SAYS IS NOT ON MY SYSTEM (BUT IS) AND I CAN'T FIND A WAY TO RESET IT. Until I FIND WHAT THE * love * has SUDDENLY GONE WRONG I Can t SEND any WHAT EMAILS WITH attachments, WHO BASICALLY * love * UP MY BUSINESS TOGETHER. HAS ANYONE ON THE PLANET YOU HAVE NO IDEA AS TO WHAT IS PAST? R

    Vulgar language removed by the moderator. Repeat the offence will result in a termination of account "."

    HEY THANKS GUYS, BUT SURPRISINGLY I FIXED IT. Even more amazing that I'm a total dinosaur IT. It turned out for some reason known to herself TB trying to reach the wrong file to one e-mail that has already sent and received, (b) was on my hard drive, I had moved the file to a different location, but it was some time after the message had been sent.
    I had to move the file, restore it to its original folder, attach the wrong file to the message I wanted to send - then remove the attachment and reset the search on attachments for "desktop" and then search for and add the file I wanted to send in the first place. What a parley - but in some way it has sorted all. I have no idea why this happens, but he can help others who have the same mysterious problem arising on attachments and file associations. Thanks for your help - my faith in your forum is restored - and my apologies for the rudeness at the beginning, but my boy I was mad!

  • Oracle Certified Professional, developer MySQL 5.6 [1Z0-882]

    Hello

    It is very strange that if less info on 1Z0 - 882 in the internets. MySQL is the most popular worldwide DB.

    I'm certified Oracle database SQL Expert and ask if this review is an easy win for me? What is the difference of Oracle database SQL Expert certified? Study guide which?

    It is very strange that if less info on 1Z0 - 882 in the internets. MySQL is the most popular worldwide DB.

    There is a new review. Articles and other information will be accumulated over time.

    What is the difference of Oracle database SQL Expert certified? Study guide which?

    It is not a lot in common between the two.  The review has 14 topic on SQL operations.  Since MySQL uses SQL ANSI, you know Oracle SQL will be compatible.  However, the other 2/3 of the test has no connection with 1Z0-047.

    No study guide does exist for this test.  Most likely I'll write one, but I couldn't give you a period of time.  I am currently working on the exam 1Z0-417.  After that, I plan to do 1Z0-100.  Reviews of MySQL * could * follow that.

  • How to migrate the Oracle database to the MySql server

    Hello

    I'm on a project that include databases oracle to MySql database migration, also include data warehouse servers.
    Please help me, what is the procedure to migrate the oracle to MySql database database, which takes relatively to the objects of care.
    If any link help me, please let me know.

    Hello
    This forum is for assistance to the migration of non-Oracle to Oracle databases. If you need assistance in migrating from Oracle to MySQL contact MySQL. You can try the forum MYSQL here-

    http://forums.MySQL.com/

    Kind regards
    Mike

  • Migrating from Oracle stored procedures to MySQL?

    I was told that MySQL Workbench will accomplish this.
    If so, do you have the docs for this?

    I'm sorry, but this forum is only to help in migrations from foreign to an Oracle database databases. When you need assistance for migrating from Oracle to MySQL procedure so if please check MySQL support or visit their web site: http://www.mysql.com/products/workbench/ and their forum.

  • Oracle Warehouse Builder and MySQL as a target for mappings

    Hello
    its me again. Now with another problem.
    I use the Oracle Warehouse Builder 11.2.0.1 and MySQL 5.1.1. I have connected to MySQL, imported from all tables - well. Now, I would like to use the tables in Oracle 11 g as a source and MySQL tables as a target for my maps. Since there are different servers, I used the model mappings. The problem is I get the error during the deployment process. I even can't deploy/create simple tables for the MySQL module. So I was wondering if it is even possible to use MySQL as the target? Or can I just use MySQL as a source?

    THX


    I forgot to write, I get a "java.lang.reflect.UndeclaredThrowableException; nested exception is: java.lang.reflect.UndeclaredThrowableException; Oracle.OC4J.rmi.OracleRemoteException; java.lang.reflect.UndeclaredThrowableException; ' Error when I deploy my mapping.

    Published by: backlit on 06.09.2011 06:15

    It seems that the connectors are not deployed. The connector is at the location of the CCA to the location source or target used in your mapping. You can try to deploy the connectors of the CCM user interface, it will be deployed as J2EE data stores in the CCA. Thus, the name not found error, is the name within the CCA for the J2EE data store, deployment of the connector should solve that. They should be deployed automatically I think that it may therefore be that there is an error in deployment of connector, you need to check.

    The mysql JDBC driver you copied into the appropriate directory for the CCA before the CCA?

    There is a useful Mark Rittman article in Oracle magazine that gives an overview below.
    http://www.Oracle.com/technetwork/issue-archive/2010/10-may/o30bi-085419.html
    See you soon
    David

  • String to number list

    I have separate numbers by- and fate as string. I need numbers in select statements as a list of numbers.

    Can someone please help me to get this done?

    Example of a string: "7001-5001-8001.

    I must use this as

    Select * from table1 where id in ( 7001,5001,8001);

    Any help on this will be greatly appreciated.

    Based on Frank's proposal, Oracle has a blog about it

    How to split string separated by commas and pass to the clause of the select statement

    https://blogs.Oracle.com/aramamoo/entry/how_to_split_comma_separated_string_and_pass_to_in_clause_of_select_statement

    Here's my example

    DROP TABLE t1;
    
    CREATE TABLE t1
    (
    ID NUMBER
    );
    
    INSERT INTO t1 VALUES (7001);
    INSERT INTO t1 VALUES (5001);
    INSERT INTO t1 VALUES (8001);
    INSERT INTO t1 VALUES (9001);
    
    COMMIT;
    
    WITH datum AS
         (SELECT REPLACE('7001-5001-8001', '-', ',') AS token
            FROM dual)
    SELECT *
      FROM t1
     WHERE id IN (SELECT TO_NUMBER(REGEXP_SUBSTR(token, '[^,]+', 1, LEVEL)) AS ids
                    FROM datum
                 CONNECT BY REGEXP_SUBSTR(token, '[^,]+', 1, LEVEL) IS NOT NULL);
    

    The output is:

    Elapsed: 00:00:00.02
    
            ID
    ----------
          7001
          5001
          8001
    
  • by comparing the number of records in the table child

    I have 3 tables below:

    Table 1 - Parent Table
    Table table2 child - who has the number of records for each record in Table1 (row_id in Table1 corresponds to par_row_id in Table2)
    Child table table 3 - has that number of records for each record in Table1 (row_id in Table1 corresponds to par_row_id in table 3)

    I would like to run an Oracle SQL query to identify all the separate row_id on Table1, for which the number of child records in Table2 does not match the number of child records in Table3

    I ask for help to identify the best way to identify these records in the parent table. If possible an example too, please.

    Thank you

    Published by: cseshan on February 3, 2013 01:35

    All by adding the simplest example (with the sample data that you were supposed to provide) below

    create table table1(row_id number primary key);
    
    create table table2(par_row_id number references table1);
    
    create table table3(par_row_id number references table1);
    
    insert into table1 values(1);
    insert into table2 values(1);
    insert into table3 values(1);
    
    insert into table1 values(2);
    insert into table2 values(2);
    insert into table2 values(2);
    
    insert into table1 values(3);
    insert into table3 values(3);
    insert into table3 values(3);
    
    insert into table1 values(4);
    insert into table2 values(4);
    insert into table2 values(4);
    insert into table2 values(4);
    insert into table3 values(4);
    insert into table3 values(4);
    
    commit;
    
    with child1_cnt as
    (
      select par_row_id,count(*) cnt
      from table2
      group by par_row_id
    ),
    child2_cnt as
    (
      select par_row_id,count(*) cnt
      from table3
      group by par_row_id
    ),
    all_counts as
    (
      select p.row_id,nvl(c1.cnt,0) c1_cnt,nvl(c2.cnt,0) c2_cnt
      from table1 p
       left outer join child1_cnt c1
         on ( p.row_id = c1.par_row_id )
       left outer join child2_cnt c2
         on ( p.row_id = c2.par_row_id )
    )
    select row_id,c1_cnt,c2_cnt
    from all_counts
    where c1_cnt != c2_cnt;
    
    ROW_ID C1_CNT C2_CNT
    ------ ------ ------
         2      2      0
         4      3      2
         3      0      2 
    
  • What is the point of accuracy and scale to Type Number?

    Version: 11.2

    What is the point of having the precision and the SCALE type number? If you create the column with just NUMBER ie.without
    specify the precision or scale, you can enter numbers with a precision and scale.


    SQL> select * From v$version where rownum < 2;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    
    
    SQL> create table t1 (col1 number);
    
    Table created.
    
    SQL> insert into t1 values (223.9939394);
    
    1 row created.
    
    SQL> insert into t1 values (88.228384);
    
    1 row created.
    
    SQL> insert into t1 values (9.34);
    
    1 row created.
    
    SQL> insert into t1 values (000.00);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t1;
    
          COL1
    ----------
    223.993939
     88.228384
          9.34
             0
    Do you already have a scenario where a numeric column should store only values with a fixed precision and scale?

    Omega-3 wrote:
    Version: 11.2

    What is the point of having the precision and the SCALE type number? If you create the column with just NUMBER ie.without
    specify the precision or scale, you can enter numbers with a precision and scale.

    SQL> select * From v$version where rownum < 2;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    
    SQL> create table t1 (col1 number);
    
    Table created.
    
    SQL> insert into t1 values (223.9939394);
    
    1 row created.
    
    SQL> insert into t1 values (88.228384);
    
    1 row created.
    
    SQL> insert into t1 values (9.34);
    
    1 row created.
    
    SQL> insert into t1 values (000.00);
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> select * from t1;
    
    COL1
    ----------
    223.993939
    88.228384
    9.34
    0
    

    Do you already have a scenario where a numeric column should store only values with a fixed precision and scale?

    Plenty of needs of the company for specific details and scales.

    An age can the persons required to be stored as whole not more 3-digit numbers.
    A sum of money may have to be stored with no more than 2 decimal places of accuracy for example the books of GB Pence or US Dollars and Cents
    A unit of length may need to be stored in meters with 2 decimals of centimetres
    A size may have to be stored with a decimal for half sizes
    etc.
    etc.

    Yes, you can create simply as a generic NUMBER data type, but their design with precision and scale can provide additional information on the limitations for the stored values, especially for things like tools that can use the specified precision and scale to determine how to display the automatically (default) values of reporting.

    If you start to question "what is the point?" then you may as well say what's the point of having a NUMBER data type when we can store numbers in a VARCHAR2 data type? or what's the point of having a DATE data type, when we can stored dates as VARCHAR2 data type? etc.

    No need to ask such a question because there is almost always a point to these things (and if not what they get deprecated in future versions).

  • ORA-06553: PLS-306: wrong number or types of arguments errors

    Hi friends,

    When executing the below function I get error like

    I use the program version 2.1 sql Oracle.
    ============================
    ORA-06553: PLS-306: wrong number or types of arguments in the call to 'FUNC_TEST '.
    06553 00000 - "PLS - %s: %s.
    ============================

    CREATE OR REPLACE FUNCTION FUNC_TEST
    RETURN SYS_REFCURSOR
    AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    total_val number (5): = 65;
    REF_TEST SYS_REFCURSOR;
    cursor c1 is
    Select substr(data,1,3). substr(Data,5) new_col text_1 update of data;
    BEGIN
    FOR employee_rec in c1
    LOOP
    text_1 update
    data value = substr (employee_rec.new_col, 1, 4). Chr (total_val) | substr(employee_rec.new_col,5) location being the c1;
    total_val: = total_val + 1;
    If total_val > 90 then
    total_val: = 65;
    end if;
    end loop;
    commit;
    REF_TEST OPEN for SELECT data FROM text_1;
    RETURN REF_TEST;
    END;
    -----------------------
    Table script:

    create table text_1
    (
    given varchar2 (20)
    )

    insert into text_1 values ("IAL030003IND")

    Please suggest.

    Thank you
    Lony

    >
    Yes, I also used a procedure and its fine in the working procedure.

    But according to her does not work... Or how can spend us in parameter to this function so that it can work?
    . . .
    If I am performing the function of the query below and I don't want to pass any parameter

    Select double FUNC_TEST;

    I get the error message like
    {,}
    >
    Your problem is that the function returns a ref cursor - that is a pointer to a result set. You can't put a ref cursor in a cell in the grid.

    The only reason why the procedure is 'work' is probably because you do not use a ref cursor in the version of the procedure.

    Why would you use a function that combines the data of attachment with the return of the data as a Ref Cursor? Once the data are set, there are fixed if you call the function a second time, that your data will be be stripped.

    If you want to return a Ref Cursor then you must use the function in the FROM clause: SELECT * FROM TABLE (myFunc ())

Maybe you are looking for