Changes of data type of column between the local and remote database

Please point me the proper documentation, so I can understand what is happening.and how to solve the problem in the short term until we can change the database character set to match the remote database.

Details:

Remote database: set of 12 c CARS characters AL32UTF8

Database local 11g 11.2.0.4 as UTF8 character.

CREATE TABLE local_table_t AS (SELECT NAME FROM reference_table_t@remotedb)

the NAME column in reference_table_t to remotedb is varchar2 (10 byte), it creates this column in local_table_t as varchar2 (30 bytes)

CREATE TABLE local_table2_t AS (SELECT NAME FROM reference_table2_t@remotedb)

the NAME column in reference_table_t to remotedb is varchar2 (10 char), it creates this column in local_table_t as varchar2 (30 char)

This same problem also happens with views materialized from the remotedb.

Thank you

Dave.

Found note size double or triple column when using (materialized) views / DEC in a db AL32UTF8 and the dblink pointing to a non-AL32UTF8 db (or vice versa). (Doc ID 1592514.1)

that answers my question.

Dave.

Tags: Database

Similar Questions

  • When you expand to show the local and remote sites in DW CS6 how local to be left?

    When you expand to show the local and remote sites in the previous version of DW, the type of files (local or remote) selected when you see do not both, automatically came on the left.  I liked local when I'm editing and when I'm ready to download I expand to see the two premises remotely.  Before, the one you selected, in my local case, was always displayed on the left.  In CS6 when I local selected before I develop, the local is now right and distance on the left. For me, this is not correct.  I find that having local on the works of best left to me as reading, left right, I want the room on the LEFT, so I put the update on the left of the remote control on the right.

    in DW CS6-> How to get the local to be on the left?

    Edit > Preferences > Site

    Change the right to the left on the top.

  • traditional measures to change a data type of column

    Hi guys,.

    I need your opinion on the traditional way to edit a column of data type, which is the best in terms of performance, taking into account millions of rows to be updated.
    We use the Oracle Database 11g Release 11.1.0.7.0 - 64 bit

    1. create the new column at the end of the table.
    2. run an update to populate the new column in the table
    3. remove the old column of table
    4 rename the new column for the original name of the column

    or

    1. create the new column at the end of the table.
    2. run an update to populate the new column in the table
    3 Rename the new column for the original name of the column
    4. remove the old column of table

    Kind regards
    Zack

    Welcome to the forum!

    Unfortunately, you posted in the wrong forum. This forum sql developer and your question belongs in the database - forum general question that the issue has nothing to do with the sql developer. As the forum title says "SQL Developer (not for general questions of SQL/PLSQL)".

    1. open a new thread in the General database forum.j
    Database General Discussions

    2. change this question to post the link to the new question and ask people to follow.

    3. Mark this question ANSWER so people will follow in the other forum

    If your question is to choose between the first choice that actually works
    >
    1. create the new column at the end of the table.
    2. run an update to populate the new column in the table
    3. remove the old column of table
    4 rename the new column for the original name of the column
    >
    or the second choice that cannot possible work?
    >
    1. create the new column at the end of the table.
    2. run an update to populate the new column in the table
    3 Rename the new column for the original name of the column
    4. remove the old column of table
    >
    You cannot rename the new column for the original column name (step #3) because this would have two columns with the same name. And you can move the old column of table (step #4) because you can never do step #3.

    What did you think?

    When you post in the other forum, you must provide the data types of the two columns involved: the old and you want to take it.

    If you can do it offline you can use a DEC (create the select table) to create a new table that contains the new column and data and does not include the data or the old column. Who would make the best because it could make the new table NOLOGGING and create the table and data in parallel.

  • synchronization between the primary and standby database

    Hi all

    We have 2 database, we have 2 requirment

    (1) making a primary database and secondly of Eve
    (2) synchronization only differential data betwwen the primary and secondary daily.


    Please help me

    Hello

    What is the physical standby?
    Do you have the chance to look over the physics of the standby database.
    You just need to apply daily archived file generated to the standby database. This can be done manually or automatically through data guard.

    Concerning
    Anurag

  • DataGuard no synchronization between the primary and Standby databases

    Dear Sir

    If the database is a central problem of corruption in a given segment, an index for example, the synchronization process is always for the other node?

    I found a problem, because the primary database has been altered and block synchronization occurred, because the sequences were in the same paragraph, for making the switch and newspapers registered in the database side, we had problems because the details were not in the second node, so we have problems because the information contained in an instance that was not high school.

    In the Bank primary block has been altered, but not in the secondary block has been altered, you can be?
    Now we have a database with information not included in the other cases, it takes using SQL commands to migrate data from one instance to another.

    Thank you,

    Alexander
    In the Bank primary block has been altered, but not in the secondary block has been altered, you can be?

    "Corrupted" means the database down? The exact error message after your get?

    Thank you

  • How to connect the local and Remote Desktop (Android OS) application simultaneously without one shot the other in the login screen?

    I want to connect to my local office via the remote desktop connection, but keep both connected at the same time without being local or remote kicking each other in the bridge/connection between the two. I tried to download and patch the termsrv.dll using UniversalTermsrvPatch - x 86 .exe for Windows Xp 32-bit SP3 compatibility. But still... Settings app may prevent 2 to be connected at the same time? If so could Microsoft please update their app. Any suggestions...

    Try this link for desktop connection xp remotely.

    https://www.Microsoft.com/en-US/Download/details.aspx?ID=7208

  • Change the Data Type of column on large partitioned Table Tablet

    Hello

    I was tasked to change a certain NUMBER of collar to a colonel VARCHAR2

    It is usually an easy task, but I ran into several challenges due to the size of the table, the second major problem is the compression of the table.

    To begin with, the Table and index are 4.4 to and hold around 11 lines billion. That the Table is compressed, not the index.

    The first option was to add a new collar of VCHAR, update from the Col de NUM, file and then drop the colonel NUM


    We ran this test in the Test environment and because discovered Compression Table that you can only mark the column is not used, and it can only be moved permanently from the Table if you unzip the whole Table and run «...» REMOVE the UNUSED COLUMNS'.

    The second way is to create a separate Table copy with the values of the source of neck, then write to null to the source of neck, change data Type when its empty and then update the source again with the copy Table values.

    The second option, that's what I'm testing, but I work with nearly 30 million lines by daily score, inserts take very long to fill.

    How can I make faster inserts between the Source and the copy Table?

    What other channels follow to accomplish the task above?

    Concerning

    Stephan

    Nowhere in your proposed solution was necessary for you to understand why the data source changes, its as simple that to take what is ons the table (all the facts in the original post) and offering the best way on the basis of previous experience or oracle skills acquired over time.

    If you spent so much time and thought to help with a solution that you did on WHY complain, you could have provided some feasible solutions already.

    No thanks to your information irrelevant and unnecessary, I've implemented a solution already.

    1 export the Source Table

    2. create a 'replica Table' using the DDL source using a temporary table name

    3. import all Partitions in the Table new

    4. before the Cut-Over, synchronize the changes from the Source to the replica Table

    5 rename the Source

    5 rename the Table of replica for the Original Source Table name

    6. slide the original Source Table

  • ADF BC - difference between the number and the Types of attributes DBSequence

    Hi all

    The ADF tutorials and examples, when you define an entity object, I understand that we could make use of the type of the DBSequence attribute and a trigger of DB to set a unique ID column on a table in the INSERT.
    For the same primary key attribute, I tried to use the Number data type. Now, with the DB of active trigger, I was able to achieve the same result as before. Additional configurations, I had to make sure that when using the data type numbers will allow "Refresh after insert", define Updatable when new and define a default value (I put this as - 1).

    My question is what is the difference between using a number and DBSequence of the types of data for a field? Is that just a data type DBSequence avoids the manual installation of the above properties?

    Thank you

    Hello

    With your approach, you tried to create several lines and then engaging them? Seems that your solution works for as long as there is only one line, you create both

    Frank

  • -Error ORA-00932: inconsistent data types: expected TANK got the NUMBER

    Here is my report query...
    select 
    *
    from   DW_RFA_JOBDATA
    where  FINISH_TIME >= :P1_START_DATE 
    and FINISH_TIME < :P1_END_DATE
         AND RFA_FLAG = (CASE :P1_JOB_CLASSIFICATION WHEN '0' THEN 'LSF'
                                      WHEN '1' THEN 'NON-LSF' 
                                      ELSE RFA_FLAG END)
    The column data type RFA_FLAG is NUMBER(*,0)... I'm view RSA and RSA - not the area of selection, but I get the error ORA-00932: inconsistent data types: expected TANK got the NUMBER >

    I have created a static LOV with LST display 0 return
    Display NON - RSA 1 return...

    Could any body please help me in truble shooting error? How to to convert the data type to number, I have no privileges to make changes to the table...

    Mark you my previous answer as correct? (MOST POINTS!  :))

  • How to determine if a data type is used in the comic book?

    Background:
    I am currently planning to install GoldenGate proof of Concept and have questions about the data types supported by the capture mode (pg 1-5, 1-6 in the installation guide). Is not in itself a matter of GoldenGate.

    Our source and target databases are 11.2.0.2
    The GG server will be 11.2.0.3
    I'm new to the environment and want to confirm that we needn't upgrade the source and target the DBs to 11.2.0.3 in order to use the integrated capture mode. This forces me to know if 3 specific types of data are used in the comics. The problem is, Oracle docs aren't clear to me, when they refer to 3 specific data types.

    Here's the question:

    Does anyone know how I can confirm that the following 3 data types are used in the DB by querying the dictionary: "XML stored in binary form',"XML stored as object-relational","abstract data Type "?

    If I select the types of data separate from dba_tab_columns, I see no data enumerated type that indicates, for example, that an XML string is stored as a ' binary '.

    For me, when Oracle made reference to a "stored as binary XML" on page 1-6 on the installation guide, I guess that makes Oracle refers to a BLOB that contains an XML reference, but I can't be sure.

    Someone has an idea that they could share? I just want to confirm that we do not have to upgrade our source and target DBs at 11.2.0.3 by searching in the database is possible to confirm that the above 3 data types are not used by the application.

    Thanks in advance for any help.
    Tony G

    You should find XML columns stored in binary form or CLOB using the DBA_XML_TAB_COLS view referenced in http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb01int.htm#g644983.

    You should find XML tables using storage relational object in the view DBA_OBJECT_TABLES with:

    select
    owner,
    table_name,
    table_type
    from
    dba_object_tables
    where
    table_type='XMLTYPE';
    

    To abstract data type, you can query DBA_TAB_COLUMNS using ADT as literal for DATA_TYPE column:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> drop table t purge;
    
    Table dropped.
    
    SQL> drop type adt;
    
    Type dropped.
    
    SQL> --
    SQL> create type adt is object
      2  (
      3   c1 number,
      4   c2 varchar2(30)
      5  ) final
      6  /
    
    Type created.
    
    SQL> show errors
    No errors.
    SQL> create table t
      2  (
      3  c adt
      4  )
      5  /
    
    Table created.
    
    SQL> show errors
    No errors.
    SQL> --
    SQL> column table_name format a10
    SQL> column column_name format a10
    SQL> column data_type format a10
    SQL> select
      2  table_name,
      3  column_name,
      4  data_type
      5  from user_tab_columns
      6  where
      7  table_name='T';
    
    TABLE_NAME COLUMN_NAM DATA_TYPE
    ---------- ---------- ----------
    T          C          ADT
    

    Edited by: P. Forstmann on 8 Apr. 2013 20:28

    Edited by: P. Forstmann on 8 Apr. 2013 21:05

  • Why my display of the date of the mailbox does not have a / between the year and the month?

    I'm talking here about how the date of different e-mails appear in my Inbox. I have a / between the month and the day, and a / after the day, but I did not / between the year and the month.

    TB uses the date format short, such that defined by your operating system, which, in the case of Windows, is located in the Panel control/region and language.

    http://KB.mozillazine.org/Date_display_format

    There are a few modules that might also be useful:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ConfigDate/

    https://addons.Mozilla.org/en-us/Thunderbird/addon/Super-date-format/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • For the complex data type, how to generate the Dll with compatible interface to C/C++

    Hello

    I used the Labview FPGA module to develop test equipment. Now, I need to write a driver that is to be a Dll with compatible interface to C/C++ for this equipment. So that my client who is familiar with C/C++ can call the driver without any study on labview. But I had a few problem on how to convert labview for C/C++ data complex data type. To clearly explain to my question, I have attached a simple example. (see attachment) I try to generate a Dll for the attached example VI and get the the function prototype at the head of the files as below:

    ' void OpenFpgaReference (LStrHandle * RIODevice, TD1 * errorIn, LVRefNum * FPGAVIReferenceOut, TD1 * errorOut).

    As you have known, the type of data "LStrHandle * RIODevice" and "LVRefNum * FPGAVIReferenceOut" Labview data format are. C/C++ do not have this kind of data type and can not reconige it. As a result, I can't call the Dll of C/C++ programming language. How to convert these two data type of labview for the C/C++ compatible data format, and then build the Dll? Anyone know about this?

    The answer is really apprecaited! Thank you in advanced.

    Ivan.Chen wrote:

    As I found in the following article:

    http://digital.NI.com/public.nsf/WebSearch/FB001AA027C8998386256AAD006C142D?OpenDocument

    LVRefNum is the name of resource of LabVIEW VISA or refnum, and "it is impossible to convert LabVIEW VISA name of resource or refnum VISession valid ID."
    This means that external code modules can not access & control the session VISA which is open by labview. But for my purposes, I will not attempt to access this VISA extenal code(C/C++) session. I just hope that save this session VISA in the external code once I opened it in Labview dll; and pass it to the labview dll when needed. While I have not need to login again when I need to control the device. Is it possible to do?

    A LVRefNum is really just a single int32 value. Its meaning is useless for other environments than those who created it so that you Michael not any what in C/C++ caller but pass it back to other functions in your DLL, but this often isn't a problem at all.

    You can take the following statement of the LabVIEW extcode.h headers and add them to your delabviewed header files to make it work in such a way.

    #define Private (T) typedef struct T # _t {void * p ;} * T}

    Private (LVRefNum);

    The LStrHandle you must set a standard C string instead in your export DLL and document what is the size of the string buffer should have if it is an output parameter.

    TD1 error clusters should also be divided into their parameters (C compatible) separate for all items or just to the left of suite entirely.

    Rolf Kalbermatter

  • Gap between the left and right columns. Both floated and checked the meansurements. Help!

    Gap between the left and right columns. Both floated and checked the meansurements. Help!

    Nancy - I think I might have fixed. I'll get back to you. Thank you very much for answering. Sometimes I feel so lonely there.

  • Can I change my 8600 more print quality settings in a framework between the project and normal

    Officepro 8600 more

    Windows 7 32 bit

    How can I print 'between' projects and normal settings?

    I'm sorry you say crhfool, but there is no option between the 'Project' and 'Normal' on the 8600. The three main choices that you are 'Project', 'Normal' and 'Best '. They determine the density of 'points' by your inkjet printer, and the printer will always default to the setting chosen.

    I hope this information is useful!

  • difference between the view and the procedure

    Hi Master,

    Today I received a request from my senior technical leader... !!

    Q > what is the difference between the view and the procedure?

    I got response like this...

    A view represents the logic of one or more tables/views. It won't take no place in db... It is a virtual table, query will only store in db... useful

    for safety... If the main table has obtained changes... automatically discovers also change... etc.

    Proecudure is a db object will be performs a perticular action... It may or may not return values. ?

    But somehow, he isn't happy... He expects more... .very close view of diff. b & w and procedure.

    Please explain it to me...!

    Concerning

    AR

    874273 wrote:

    Hi Blu,

    Thanks for your replies...! But we think if notice and procedure will be the same no matter what point of view? Both are the same? If Design view... We can create a stored procedure?

    How a view and procedure may do the same thing?  They are two different things with different objectives.  You use the correct one depending on what you want to achieve; they are not interchangeable.

    And another question...!

    (Q) how you will store Japan, characters of China in a database table? will there be a new feature in Oracle 11 g?

    (A) I use dbms_lob package? Japan/China characters are multi byte characters... so we can use the nclob data type?

    is this correct... ?

    No, it not there no novelty in Oracle 11 g for the storage of Japanese or Chinese characters, because there is already a feature for their storage in previous versions as well.  It is determined by the parameters characterset and nationality that you use when you create the database.

    Why would you choose to store them in a LOB using DBMS_LOB?  Yes, they have multibyte characters, but if you have configured your database for the correct character sets, for example using UTF - 8, then you can store the characters in VARCHAR2, like any other language.  The only difference is that the storage of 4000 bytes limit still applies, so you maybe isn't able to store 4000 multibyte characters in a varchar2 column 4000 single-byte, it can be as little as 1000 characters if they are all characters in 4 bytes.  (Note: 12 c limit in SQL can be increased up to 32,767 characters, to harmonize it with variable varchar2 PL)

Maybe you are looking for