Convert NLS_CHARACTERSET 9i RAC DB from WE8ISO8859P1 to UTF8

Hi,
Currently my database has
NLS_CHARACTERSET=WE8ISO8859P1
NLS_NCHAR_CHARACTERSET=AL16UTF16
However, developers request to change NLS_CHARACTERSET to be UTF8 because new source of one of new data marts is UTF8. Currently there is issue with displaying only few records. For conversion, I need to recreate a new database which is what I'm trying to avoid.
My quesitons are
1. Since Unicode data stored in few columns in few tables in this new datamart only, can they take advantage of NCHAR and NVARCHAR instead?
2. If converted to UTF8, what is the drawback of storing all data in database in Unicode?
3. Is AL32UTF8 better (and superset) than UTF8?
Thanks

Generally, you won't be able to convert the existing database to UTF8 since UTF8 isn't a strict binary superset of the existing ISO 8859-1 character set. You would probably have to create a new database and export & import the data over. If there are special circumstances, you may have some other options, but it will involve quite a bit of administration.
Working with NCHAR columns tends to be a bit more complex from an application development perspective (though this complexity differs depending on the front end used). Depending on the language of most of the data, there are probably space implications of UTF16 vs UTF8. UTF16 is a fixed width character set, so every character occupies two bytes of storage. UTF8 is a variable width character set, so English characters will tend to be 1 byte, European characters will tend to be 2 bytes, and Asian characters will tend to be 3 bytes.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Convert 10.2.0.4 RDBMS from WE8ISO8859P1 to UTF8 without install new langua

    We are in 11.5.10.2 Ebusiness suite with 10.2.0.4 RDBMS. thinking to take advantage a downtime to convert the darabase character set from WE8ISO8859P1 to UTF8 right now even we ONLY want to install and configure new language in year or two in the future. I have a lot of questions and hope someone can answer them
    1) Is that ok to convert the database character set witout doing anything in the apps side? Not even change any setting in apps?
    2) I know Oracle is recommned AL32UTF8 for E-business suite.. but for Rel 12 only. Am I have the right information?
    3) I found someone post in one of the Forum in here .. that he use CSSCAN to scan the database but realized it only change the metadata not the user data..... I though CSSCAN is only for scanning to report potential data.. should not change anything in database? I wonder he mean CSaLTER instead.... but only metadata huh??
    4) I also read some people use expdp/impdp to perform the character set conversion... but I also read that oracle recommend to use exp/import utility only. Is that right? What is the better method for character set conversion if both of them are valid path?
    thanks Fushan

    Hi
    Apart from Srini inputs, here is my inputs.
    *1) Is that ok to convert the database character set without doing anything in the apps side? Not even change any setting in apps?*
    No issues to convert without adding new language in EBS.
    *2) I know Oracle is recommend AL32UTF8 for E-business suite.. but for Rel 12 only. Am I have the right information?*
    Please note that AL32UTF8 is not certified for Oracle E-Business Suite 11i.
    Note.124721.1 Migrating an Applications Installation to a New Character Set:
    This is documented in Note:222663.1
    Note 179133.1 The correct NLS_LANG in a Windows Environment
    Note 264157.1 The correct NLS_LANG on Unix Environments
    *3) I found someone post in one of the Forum in here .. that he use CSSCAN to scan the database but realized it only change the metadata not the user data..... I though CSSCAN is only for scanning to report potential data.. should not change anything in database? I wonder he mean CSaLTER instead.... but only metadata huh??*
    Please follow below blog, you will get clear picture
    Changing the Database Character Set ( NLS_CHARACTERSET ) [ID 225912.1]
    Note 276914.1 The National Character Set in Oracle 9i and 10g
    Note 458122.1 Installing and Configuring Csscan in 8i and 9i (Database Character Set Scanner)
    Note 745809.1 Installing and configuring Csscan in 10g and 11g (Database Character Set Scanner)
    Note 444701.1 Csscan output explained
    http://www.oracle-base.com/articles/10g/CharacterSetMigration.php
    http://repettas.wordpress.com/2008/05/16/national-character-set-in-oracle-9i-and-10g/
    http://avdeo.com/2010/11/01/converting-migerating-database-character-set/
    *4) I also read some people use expdp/impdp to perform the character set conversion... but I also read that oracle recommend to use exp/import utility only. Is that right? What is the better method for character set conversion if both of them are valid path?*
    yes.
    Note 227332.1 NLS considerations in Import/Export - Frequently Asked Questions

  • Characterset conversion from WE8ISO8859P1 to UTF8

    Hi All,
    While running CSSCAN utility from WE8ISO8859P1 to UTF8 after running 8-9H, the process is going to sleep state.
    We need to complete this task in next 1week of time.Can any one share why this is happening.
    Thanks,
    Sekhar

    There is a Metalink note on [Bug 6460895 - CSSCAN may hang / run slowly|https://metalink.oracle.com/CSP/ui/flash.html#tab=Home(page=Home&id=fm2z4pjj()),(page=KBNavigator&id=fm2z4vd6(&viewingMode=1141&userQuery=csscan%20sleep&searchControl=1146))] that looks to be vaguely related. This indicates that the bug was fixed in 10.2.0.4, but unfortunately the bug itself isn't published, so it is rather hard to know if this is your problem or not. It would probably be worth logging a support request to see if Oracle support can determine whether or not you're being affected by this bug.
    Meanwhile, can you apply the 10.2.0.4 patchset and see if that solves the problem?
    Justin

  • Database Character Set Conversion from WE8ISO8859P1 to UTF8

    Hi All
    I want to migrate data from one database to another database But my original database character set is WE8ISO8859P1 but i want to migrate it to
    database which has character set UTF8
    because of character set it don't shows me Marathi data which is in original database .
    it shows me some symbol for Marathi words ..
    please help me out.
    Thanking You
    Gaurav Sontakke

    Dear GauravSontakke,
    Since your database version is unknown, i will show you an online documentation of character set migration for 10gR2.
    http://www.oracle.com/pls/db102/search?remark=quick_search&word=character+set+migration&tab_id=&format=ranked
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch11charsetmig.htm#sthref1442
    *http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch11charsetmig.htm#NLSPG011*Please read those carefully.
    Hope it Helps,
    Ogan

  • Changing WE8ISO8859P1 to UTF8 or  in 10g 10.2.0.4 RHEL AS 5

    Hi All,
    I want to change my database charset from WE8ISO8859P1 to UTF8, I know of the export and import method . Please tell me that is it possible for me to do the same using the alter database charachterset command or cssalter utility.
    Just wanted to be sure that if the new charset(UTF8) is the superset of the old one(WE8ISO8859P1) . I am not inclined for te export/import method bcas of the ammount of the time involved as the size of the database is big.
    Thanks

    Actually, I've imported WE8ISO... into UTF8 as well as AL32UTF8 without any problems, but you can't go backwards.
    I have had problems with data conversion, but I've come up with my own way of rebuilding the tables using NLS_LENTH_SEMANTICS set to CHAR, and then changing the column lenghts that were giving problems to 4 times as long. This always works. and is a lot easier than using csscan. I've had quite a bit of bad luck and frustration using csscan which led me to writing a white paper for Oracle on data conversion using my method (which works).
    The OP needs to have a firm understanding of character set conversion before he attempts what he was asking about. And, as you mentioned, needs to do it in test first. Then he needs to test doing a full export and importing the data to be sure not to get data conversion issues (ORA-01401: inserted value too large for column).
    ji li

  • NLS_CHARACTERSET From WE8ISO8859P1 to Arabic Suuported NLS_CHARACTERSET

    Hi Gurus..
    we use Oracle 10g on HP-Unix
    RDBMS_VERSION 10.2.0.1.0
    We wanted the Database to Support Arabic Language as well,
    Current NLS_PARAMETER
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.1.0
    To what Character Set NLS_CHARACTERSET to be changed So as the Database to Support Arabic Langauge as well,
    Which NLS_CHARACTERSET IS Best Suport for Arabic
    We have to Change From WE8ISO8859P1
    please Help
    thanks All
    Khaja

    You will need to follow the steps in MOS Doc 225912.1 (Changing the Database Character Set ( NLS_CHARACTERSET )). This is not a trivial exercise. The easiest way to do the conversion is to export the database, drop the database, recreate it with the new characterset and perform an import. Other solutions will require the support of Oracle Consulting.
    HTH
    Srini

  • Problem in Database convertion from US7ASCII to UTF8

    Hi,
    We are facing the following problem while converting the database from US7ASCII to UTF8:
    We have recently changed the database character set from US7ASCII to UTF8 for the internationalization
    purpose. We ran the Character set scanner utility and it did report that some data may pose problems.
    We followed the the below mentioned process to convert into UTF8 -
    1) alter database character set utf8
    2) alter database national character set utf8.
    Now we find some problem while working with the old data in our application which is java based.
    We are getting the following error "java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv".
    We further analyzed our data and found some interesting things :
    e.g.
    DB - UTF8.
    NL_LANG also set to UTF8.
    Select name from t1 where name like 'Gen%';
    NAME
    Genhve
    But when we find out the length of the same data it show like this
    NAME LENGTH(NAME) VSIZE(NAME)
    Genhve 4 6
    The question is why is it showing length as 4 only and when we try to use a substr function
    its extracting like the following :-
    select name,substr(name,4,1) from t1 where name like 'Gen%';
    NAME SUB
    Genhve hve
    We have execute the above queries on US7ASCII DB and it is working fine, length it shows 6
    and using SUBSTR it extracts just 'h' as well.
    We also used dump function on the UTF8 Db for the above query,,this is the result :-
    select name,length(name),vsize(name),dump(name) from t1 where name like 'Gen%';
    NAME LENGTH(NAME) VSIZE(NAME) DUMP(NAME)
    Genhve 4 6 Typ=1 Len=6: 71,101,110,232,118,101
    We checked a lot with the data and it seems 'h' (accented e) is posing the problem.
    We want to know where is the problem and how to overcome this.
    Further, we tried all of the following :
    1)
    Export Server: US7ASCII
    Export Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
    Import Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
    Import Server: UTF8
    RESULT: Acute e became h
    2)
    Export Server: US7ASCII
    Export Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
    Import Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
    Import Server: UTF8
    RESULT: IMP 00016 error
    3)
    Export Server: US7ASCII
    Export Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
    Import Client: did not set NLS_LANG / NLS_CHAR, so presumably US7ASCII as well
    Import Server: UTF8
    RESULT: Acute E became h
    4)
    Export Server: US7ASCII
    Export Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
    Import Client: NLS_LANG=AMERICAN_AMERICA.UTF8 and NLS_CHAR=UTF8
    Import Server: UTF8
    RESULT: Acute e became h
    5)
    Tried using Update sys.props$
    set value$='UTF8'
    where name='NLS_CHARACTERSET'
    RESULT: Acute e shows properly but it gives problem in the application
    "java.sql.SQLException: Fail to convert between UTF8 and UCS2: failUTF8Conv"
    Looking further it was observed the following:
    when you try this command on a column 'city' in a table which contains 'Genhva' (note the acute e after n), it shows
    command: select length(city), vsize(city),substr(city,4,1),city from cities
    Result: 4 6 hva Genhva
    if you see the value of substr(city,4,1) , you will see the problem. Also note that the length shows 4 and size shows 6. Moreover, when these records are selected through JDBC Driver, it starts giving problems.
    6)
    Actually the above (point no. 5) is similar to changing the character set of the database with 'ALTER DATABASE CHARACTER SET UTF8'. Same problem is observed then too.
    7)
    We have also tried to with another method, that is by changing the third byte of the export file which specifies the character set, to the UTF8 code by editing the export file with a Hexdecimal editor. After import the same problem has been observed as defined in (5) and (6) above.
    We have no more ideas how to migrate without corrupting the data. Of course we have known the records where these characters occur through the Oracle's cssacn utility but we do not want to manually rectify each and every record by replacing it with an ASCII character. Any other idea as to how this can be accomplised?
    Thanx
    Ashok

    The problem you have is that although your original database is defined as US7ASCII, the data it contains is more than is covered by this code page (as the reply on Sept 4 to the previous posting already said).
    This has probably happened because the client was also defined as US7ASCII, and when the DB and client are defined as having the same character set no conversion (or checdking) takes place when data is passed between them. However if you are using a Windows client then it will in fact be using Windows code page 1252 (Latin-1) or similar, and this allows many more characters, including h (accented e). So a user can enter all these characters and store them in the database, and similarly read them from the database, because data transfer is transparent.
    When you did ALTER DATABASE CHARACTER SET UTF8 this will only change the label on the database, but not affect the contents. However only part of the contents are valid UTF8, any character above 7F (like h) is invalid. If your original client now uses the database, code page transformation will take place because the client and DB have different character sets defined. The invalid codes can then cause problems.
    Without being able to explain what has happened in detail, it may help to see what your h (dec 232, x'E8') looks like. The actual data has not changed (you can see this as it is reported as 232). However the binary code there (11101000) is invalid UTF8. UTF8 encodes a character in 1 to 4 bytes, and the first bits in a UTF8 character tell how many bytes it uses. 0xxx tell it is one byte (same as the corresponding USASCII character), 110x that it uses 2 bytes, 1110 that it uses 3 bytes etc. So if you interpret what is there as UTF8 it looks like the first byte of a 3-byte character, which explains why the substringing is giving you the other 2 bytes as well.
    Can you fix this without losing data? I believe yes. First you should check what other characters are being flagged by the scan. See if these are contained in another standard character set. If they are only Western European accentet characters then WE8ISO8859P1 is probably ok, but watch out for the euro sign which Windows has at x'80', an undefined character in ISO8859-1.
    You can see the contents of the Microsoft Windows Codepage 1252 at: http://www.microsoft.com/globaldev/reference/sbcs/1252.htm
    For a listing of the US-ASCII defined characters see http://czyborra.com/charsets/iso646.html and for ISO 8859-1 see http://czyborra.com/charsets/iso8859.html#ISO-8859-1
    If all is well, you can first ALTER DATABASE CHARACTER SET to WE8ISO8859P1. This will not change any data, but ensure that all the data gets exported. Then export the DB and import it to a UTF8 DB. This will convert the non-US-ASCII characters to Unicode. You will also have to change the clients character set to something other than USASCII or they will just see ? for the other characters.
    Good Luck!

  • Characterset change from WE8ISO8859P1 to AL32UTF8

    Hi,
    I have restore the rman on new server oracle 11.2.0.3 (Previous backup was of oracle 10.2.0.4).
    Then I have successfully upgrade the database to oracle 11g but issue which I am facing right now is that the old database have the character set WE8ISO8859P1 which is now upgraded to oracle 11.2.0.3 database server.
    My required character set is AL32UTF32.
    Now is there any way that while restoring the rman backup of oracle 10.2.0.4 on new server I set the character set to AL32UTF32.
    Thank you for your cooperation.
    Kind Regards,
    Adnan Hamdussalam

    It means that either I have to change it before backup or after perform the full upgrade on new server oracle 11g and then convert the character set. Am I right?Yes, You are right.
    I think as you are changing from WE8ISO8859P1 to AL32UTF8, so you do not need any tool.
    Must read note,
    *Changing the NLS_CHARACTERSET to AL32UTF8 / UTF8 (Unicode) [ID 260192.1]*

  • Error - convert single node-RAC-ConvertTomydb.xml -

    my single node init.ora file:
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Cache and I/O
    db_block_size=8192
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=mydb
    # Diagnostics and Statistics
    background_dump_dest=/u01/app/oracle/admin/mydb/bdump
    core_dump_dest=/u01/app/oracle/admin/mydb/cdump
    user_dump_dest=/u01/app/oracle/admin/mydb/udump
    # File Configuration
    control_files=("/u01/app/oracle/oradata/mydb/control01.ctl", "/u01/app/oracle/oradata/mydb/control02.ctl", "/u01/app/oracle/oradata/mydb/control03.ctl")
    # Job Queues
    job_queue_processes=10
    # Miscellaneous
    compatible=10.2.0.1.0
    # Processes and Sessions
    processes=150
    # SGA Memory
    sga_target=1083179008
    # Security and Auditing
    audit_file_dest=/u01/app/oracle/admin/mydb/adump
    remote_login_passwordfile=EXCLUSIVE
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=mydbXDB)"
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=360710144
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    my ConvertTomydb.xml ------------which is copy of ConvertToRAC.xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    - <n:RConfig xmlns:n="http://www.oracle.com/rconfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/rconfig">
    - <n:ConvertToRAC>
    - <!-- Verify does a precheck to ensure all pre-requisites are met, before the conversion is attempted. Allowable values are: YES|NO|ONLY
    -->
    - <n:Convert verify="ONLY">
    - <!-- Specify current OracleHome of non-rac database for SourceDBHome
    -->
    <n:SourceDBHome>/u01/app/oracle/product/10.2.0/db_1</n:SourceDBHome>
    - <!-- Specify OracleHome where the rac database should be configured. It can be same as SourceDBHome
    -->
    <n:TargetDBHome>/u01/app/oracle/product/10.2.0/db_1</n:TargetDBHome>
    - <!-- Specify SID of non-rac database and credential. User with sysdba role is required to perform conversion
    -->
    - <n:SourceDBInfo SID="mydb">
    - <n:Credentials>
    <n:User>sys</n:User>
    <n:Password>oracle</n:Password>
    <n:Role>sysdba</n:Role>
    </n:Credentials>
    </n:SourceDBInfo>
    - <!-- ASMInfo element is required only if the current non-rac database uses ASM Storage
    -->
    - <n:ASMInfo SID="+ASM1">
    - <n:Credentials>
    <n:User>sys</n:User>
    <n:Password>oracle</n:Password>
    <n:Role>sysdba</n:Role>
    </n:Credentials>
    </n:ASMInfo>
    - <!-- Specify the list of nodes that should have rac instances running. LocalNode should be the first node in this nodelist.
    -->
    - <n:NodeList>
    <n:Node name="linux1" />
    <n:Node name="linux2" />
    </n:NodeList>
    - <!-- Specify prefix for rac instances. It can be same as the instance name for non-rac database or different. The instance number will be attached to this prefix.
    -->
    <n:InstancePrefix>mydb</n:InstancePrefix>
    - <!-- Specify port for the listener to be configured for rac database.If port="", alistener existing on localhost will be used for rac database.The listener will be extended to all nodes in the nodelist
    -->
    <n:Listener port="1521" />
    - <!-- Specify the type of storage to be used by rac database. Allowable values are CFS|ASM. The non-rac database should have same storage type.
    -->
    - <n:SharedStorage type="ASM">
    - <!-- Specify Database Area Location to be configured for rac database.If this field is left empty, current storage will be used for rac database. For CFS, this field will have directory path.
    -->
    <n:TargetDatabaseArea>+ORCL_DATA1</n:TargetDatabaseArea>
    - <!-- Specify Flash Recovery Area to be configured for rac database. If this field is left empty, current recovery area of non-rac database will be configured for rac database. If current database is not using recovery Area, the resulting rac database will not have a recovery area.
    -->
    <n:TargetFlashRecoveryArea>+FLASH_RECOVERY_AREA</n:TargetFlashRecoveryArea>
    </n:SharedStorage>
    </n:Convert>
    </n:ConvertToRAC>
    </n:RConfig>
    Ran the xml file
    $ rconfig ConvertTomydb.xml
    Got this below error.
    [oracle@linux1 bin]$ sh rconfig ConvertTomydb.xml
    <?xml version="1.0" ?>
    <RConfig>
    <ConvertToRAC>
    <Convert>
    <Response>
    <Result code="1" >
    Operation Failed
    </Result>
    <ErrorDetails>
    Clusterware is not configured
    </ErrorDetails>
    </Response>
    </Convert>
    </ConvertToRAC></RConfig>
    [oracle@linux1 bin]$
    Log file from /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/rconfig/rconfig.log
    [main] [0:14:4:4] [RuntimeExec.runCommand:175] Returning from RunTimeExec.runCommand
    oracle.ops.mgmt.cluster.RemoteShellException: PRKC-1044 : Failed to check remote command execution setup for node linux2 using shells /usr/bin/ssh and /usr/bin/rsh
    linux2.com: Connection refused
         at oracle.ops.mgmt.nativesystem.UnixSystem.checkRemoteExecutionSetup(UnixSystem.java:1880)
         at oracle.ops.mgmt.nativesystem.UnixSystem.getRemoteShellCmd(UnixSystem.java:1634)
         at oracle.ops.mgmt.nativesystem.UnixSystem.createCommand(UnixSystem.java:614)
         at oracle.ops.mgmt.nativesystem.UnixSystem.removeFile(UnixSystem.java:622)
         at oracle.ops.mgmt.nativesystem.UnixSystem.isSharedPath(UnixSystem.java:1352)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:916)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:859)
         at oracle.sysman.assistants.util.ClusterUtils.areSharedPaths(ClusterUtils.java:570)
         at oracle.sysman.assistants.util.ClusterUtils.isShared(ClusterUtils.java:501)
         at oracle.sysman.assistants.util.ClusterUtils.isShared(ClusterUtils.java:457)
         at oracle.sysman.assistants.util.attributes.CommonOPSAttributes.updateShared(CommonOPSAttributes.java:724)
         at oracle.sysman.assistants.util.attributes.CommonOPSAttributes.setNodeNames(CommonOPSAttributes.java:207)
         at oracle.sysman.assistants.rconfig.engine.Context.<init>(Context.java:54)
         at oracle.sysman.assistants.rconfig.engine.ASMInstance.createUtilASMInstanceRAC(ASMInstance.java:109)
         at oracle.sysman.assistants.rconfig.engine.Step.execute(Step.java:245)
         at oracle.sysman.assistants.rconfig.engine.Request.execute(Request.java:73)
         at oracle.sysman.assistants.rconfig.engine.RConfigEngine.execute(RConfigEngine.java:65)
         at oracle.sysman.assistants.rconfig.RConfig.<init>(RConfig.java:85)
         at oracle.sysman.assistants.rconfig.RConfig.<init>(RConfig.java:51)
         at oracle.sysman.assistants.rconfig.RConfig.main(RConfig.java:130)
    [main] [0:14:4:16] [UnixSystem.isSharedPath:1356] UnixSystem.isShared: creating file /u01/app/oracle/product/10.2.0/db_1/CFSFileName126249561289258204.tmp
    [main] [0:14:4:17] [UnixSystem.checkRemoteExecutionSetup:1817] checkRemoteExecutionSetup:: Checking user equivalence using Secured Shell '/usr/bin/ssh'
    [main] [0:14:4:17] [UnixSystem.checkRemoteExecutionSetup:1819] checkRemoteExecutionSetup:: Running Unix command: /usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 linux2 /bin/true
    oracle.ops.mgmt.cluster.SharedDeviceException: PRKC-1044 : Failed to check remote command execution setup for node linux2 using shells /usr/bin/ssh and /usr/bin/rsh
    linux2.com: Connection refused
         at oracle.ops.mgmt.nativesystem.UnixSystem.testCFSFile(UnixSystem.java:1444)
         at oracle.ops.mgmt.nativesystem.UnixSystem.isSharedPath(UnixSystem.java:1402)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:916)
         at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:859)
         at oracle.sysman.assistants.util.ClusterUtils.areSharedPaths(ClusterUtils.java:570)
         at oracle.sysman.assistants.util.ClusterUtils.isShared(ClusterUtils.java:501)
         at oracle.sysman.assistants.util.ClusterUtils.isShared(ClusterUtils.java:457)
         at oracle.sysman.assistants.util.attributes.CommonOPSAttributes.updateShared(CommonOPSAttributes.java:724)
         at oracle.sysman.assistants.util.attributes.CommonOPSAttributes.setNodeNames(CommonOPSAttributes.java:207)
         at oracle.sysman.assistants.rconfig.engine.Context.<init>(Context.java:54)
         at oracle.sysman.assistants.rconfig.engine.ASMInstance.createUtilASMInstanceRAC(ASMInstance.java:109)
         at oracle.sysman.assistants.rconfig.engine.Step.execute(Step.java:245)
         at oracle.sysman.assistants.rconfig.engine.Request.execute(Request.java:73)
         at oracle.sysman.assistants.rconfig.engine.RConfigEngine.execute(RConfigEngine.java:65)
         at oracle.sysman.assistants.rconfig.RConfig.<init>(RConfig.java:85)
         at oracle.sysman.assistants.rconfig.RConfig.<init>(RConfig.java:51)
         at oracle.sysman.assistants.rconfig.RConfig.main(RConfig.java:130)
    [main] [0:14:35:152] [Version.isPre10i:189] isPre10i.java: Returning FALSE
    [main] [0:14:35:152] [UnixSystem.getCSSConfigType:1985] configFile=/etc/oracle/ocr.loc
    [main] [0:14:35:157] [Utils.getPropertyValue:221] keyName=ocrconfig_loc props.val=/u02/oradata/orcl/OCRFile propValue=/u02/oradata/orcl/OCRFile
    [main] [0:14:35:157] [Utils.getPropertyValue:221] keyName=ocrmirrorconfig_loc props.val=/u02/oradata/orcl/OCRFile_mirror propValue=/u02/oradata/orcl/OCRFile_mirror
    [main] [0:14:35:157] [Utils.getPropertyValue:292] propName=local_only propValue=FALSE
    [main] [0:14:35:157] [UnixSystem.getCSSConfigType:2029] configType=false
    [main] [0:14:35:158] [Version.isPre10i:189] isPre10i.java: Returning FALSE
    [main] [0:14:35:168] [OCRTree.init:201] calling OCRTree.init
    [main] [0:14:35:169] [Version.isPre10i:189] isPre10i.java: Returning FALSE
    [main] [0:14:35:177] [OCRTree.<init>:157] calling OCR.init at level 7
    [main] [0:14:35:177] [HASContext.getInstance:190] Module init : 24
    [main] [0:14:35:177] [HASContext.getInstance:214] Local Module init : 0
    [main] [0:14:35:177] [HASContext.getInstance:249] HAS Context Allocated: 4 to oracle.ops.mgmt.has.ClusterLock@f47bf5
    [main] [0:14:35:177] [ClusterLock.<init>:60] ClusterLock Instance created.
    [main] [0:14:35:178] [OCR.getKeyValue:411] OCR.getKeyValue(SYSTEM.local_only)
    [main] [0:14:35:178] [nativesystem.OCRNative.Native] getKeyValue: procr_open_key retval = 0
    [main] [0:14:35:179] [nativesystem.OCRNative.Native] getKeyValue: procr_get_value retval = 0, size = 6
    [main] [0:14:35:179] [nativesystem.OCRNative.Native] getKeyValue: value is [false] dtype = 3
    [main] [0:14:35:179] [OCRTreeHA.getLocalOnlyKeyValue:1697] OCRTreeHA localOnly string = false
    [main] [0:14:35:180] [HASContext.getInstance:190] Module init : 6
    [main] [0:14:35:180] [HASContext.getInstance:214] Local Module init : 0
    [main] [0:14:35:180] [HASContext.getInstance:249] HAS Context Allocated: 5 to oracle.ops.mgmt.has.Util@f6438d
    [main] [0:14:35:180] [Util.<init>:86] Util Instance created.
    [main] [0:14:35:180] [has.UtilNative.Native] prsr_trace: Native: hasHAPrivilege
    [main] [0:14:35:184] [HASContext.getInstance:190] Module init : 56
    [main] [0:14:35:184] [HASContext.getInstance:214] Local Module init : 32
    [main] [0:14:35:184] [has.HASContextNative.Native] prsr_trace: Native: allocHASContext
    [main] [0:14:35:184] [has.HASContextNative.Native]
    allocHASContext: Came in
    [main] [0:14:35:184] [has.HASContextNative.Native] prsr_trace: Native: prsr_initCLSR
    [main] [0:14:35:185] [has.HASContextNative.Native]
    allocHASContext: CLSR context [1]
    [main] [0:14:35:185] [has.HASContextNative.Native]
    allocHASContext: retval [1]
    [main] [0:14:35:185] [HASContext.getInstance:249] HAS Context Allocated: 6 to oracle.ops.mgmt.has.ClusterAlias@18825b3
    [main] [0:14:35:185] [ClusterAlias.<init>:85] ClusterAlias Instance created.
    [main] [0:14:35:185] [has.UtilNative.Native] prsr_trace: Native: getCRSHome
    [main] [0:14:35:186] [has.UtilNative.Native] prsr_trace: Native: getCRSHome crs_home=/u01/app/oracle/product/10.2.0/crs(**)
    [main] [0:14:35:280] [ASMTree.getASMInstanceOracleHome:1328] DATABASE.ASM.linux1.+asm1 does exist
    [main] [0:14:35:280] [ASMTree.getASMInstanceOracleHome:1329] Acquiring shared CSS lock SRVM.ASM.DATABASE.ASM.linux1.+asm1
    [main] [0:14:35:280] [has.ClusterLockNative.Native] prsr_trace: Native: acquireShared
    [main] [0:14:35:281] [OCR.getKeyValue:411] OCR.getKeyValue(DATABASE.ASM.linux1.+asm1.ORACLE_HOME)
    [main] [0:14:35:281] [nativesystem.OCRNative.Native] getKeyValue: procr_open_key retval = 0
    [main] [0:14:35:282] [nativesystem.OCRNative.Native] getKeyValue: procr_get_value retval = 0, size = 36
    [main] [0:14:35:282] [nativesystem.OCRNative.Native] getKeyValue: value is [u01/app/oracle/product/10.2.0/db_1] dtype = 3
    [main] [0:14:35:282] [ASMTree.getASMInstanceOracleHome:1346] getASMInstanceOracleHome:ohome=/u01/app/oracle/product/10.2.0/db_1
    [main] [0:14:35:282] [ASMTree.getASMInstanceOracleHome:1367] Releasing shared CSS lock SRVM.ASM.DATABASE.ASM.linux1.+asm1
    [main] [0:14:35:282] [has.ClusterLockNative.Native] prsr_trace: Native: unlock
    [main] [0:14:35:802] [nativesystem.OCRNative.Native] keyExists: procr_close_key retval = 0
    [main] [0:14:35:802] [ASMTree.getNodes:1236] DATABASE.ASM does exist
    [main] [0:14:35:802] [ASMTree.getNodes:1237] Acquiring shared CSS lock SRVM.ASM.DATABASE.ASM
    [main] [0:14:35:802] [has.ClusterLockNative.Native] prsr_trace: Native: acquireShared
    [main] [0:14:35:803] [OCR.listSubKeys:615] OCR.listSubKeys(DATABASE.ASM)
    [main] [0:14:35:803] [nativesystem.OCRNative.Native] listSubKeys: key_name=[DATABASE.ASM]
    [main] [0:14:35:809] [GetASMNodeListOperation.run:78] Got nodes=[Ljava.lang.String;@11a75a2
    [main] [0:14:35:809] [GetASMNodeListOperation.run:91] result status 0
    [main] [0:14:35:809] [LocalCommand.execute:56] LocalCommand.execute: Returned from run method
    [main] [0:14:35:810] [ASMInstanceRAC.loadDiskGroups:2260] diskgroup: instName=+ASM2, diskGroupName=FLASH_RECOVERY_AREA, size=95378, freeSize=88454, type=EXTERN, state=MOUNTED
    [main] [0:14:35:811] [ASMInstanceRAC.loadDiskGroups:2260] diskgroup: instName=+ASM1, diskGroupName=FLASH_RECOVERY_AREA, size=95378, freeSize=88454, type=EXTERN, state=MOUNTED
    [main] [0:14:35:811] [ASMInstanceRAC.loadDiskGroups:2260] diskgroup: instName=+ASM2, diskGroupName=ORCL_DATA1, size=95384, freeSize=39480, type=NORMAL, state=MOUNTED
    [main] [0:14:35:811] [ASMInstanceRAC.loadDiskGroups:2260] diskgroup: instName=+ASM1, diskGroupName=ORCL_DATA1, size=95384, freeSize=39480, type=NORMAL, state=MOUNTED
    [main] [0:14:35:858] [ASMInstance.setBestDiskGroup:1422] sql to be executed:=select name from v$asm_diskgroup where free_mb= (select max(free_mb) from v$asm_diskgroup)
    [main] [0:14:35:864] [ASMInstance.setBestDiskGroup:1426] Setting best diskgroup....
    [main] [0:14:35:888] [SQLEngine.doSQLSubstitution:2165] The substituted sql statement:=select t1.name from v$asm_template t1, v$asm_diskgroup t2 where t1.group_number=t2.group_number and t2.name='FLASH_RECOVERY_AREA'
    [main] [0:14:35:888] [ASMInstance.setTemplates:1345] sql to be executed:=select t1.name from v$asm_template t1, v$asm_diskgroup t2 where t1.group_number=t2.group_number and t2.name='FLASH_RECOVERY_AREA'
    [main] [0:14:35:892] [ASMInstance.setTemplates:1349] Getting templates for diskgroup: oracle.sysman.assistants.util.asm.DiskGroup@170888e
    [main] [0:14:35:892] [ASMInstance.setTemplates:1357] template: PARAMETERFILE
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: DUMPSET
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: DATAGUARDCONFIG
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: FLASHBACK
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: CHANGETRACKING
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: XTRANSPORT
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: AUTOBACKUP
    [main] [0:14:35:893] [ASMInstance.setTemplates:1357] template: BACKUPSET
    [main] [0:14:35:894] [ASMInstance.setTemplates:1357] template: TEMPFILE
    [main] [0:14:35:894] [ASMInstance.setTemplates:1357] template: DATAFILE
    [main] [0:14:35:894] [ASMInstance.setTemplates:1357] template: ONLINELOG
    [main] [0:14:35:894] [ASMInstance.setTemplates:1357] template: ARCHIVELOG
    [main] [0:14:35:894] [ASMInstance.setTemplates:1357] template: CONTROLFILE
    [main] [0:14:35:894] [ASMInstance.createUtilASMInstanceRAC:113] Diskgroups loaded
    [main] [0:14:35:894] [LocalNodeCheck.checkLocalNode:107] Performing LocalNodeCheck
    [main] [0:14:35:894] [OracleHome.getNodeNames:270] inside getNodeNames
    [main] [0:14:36:116] [OracleHome.isClusterInstalled:252] bClusterInstalled=false
    [main] [0:14:36:120] [Step.execute:251] STEP Result=Clusterware is not configured
    [main] [0:14:36:121] [Step.execute:280] Returning result:Operation Failed
    [main] [0:14:36:121] [RConfigEngine.execute:67] bAsyncJob=false
    [main] [0:14:36:124] [RConfigEngine.execute:76] Result=<?xml version="1.0" ?>
    <RConfig>
    <ConvertToRAC>
    <Convert>
    <Response>
    <Result code="1" >
    Operation Failed
    </Result>
    <ErrorDetails>
    Clusterware is not configured
    </ErrorDetails>
    </Response>
    </Convert>
    </ConvertToRAC></RConfig>
    Log file from /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/rconfig/mydb/sqllog
    MYDB     mydb                    2622254467
    10.2.0.1.0     ACTIVE
    cluster_database                                        FALSE
    undo_management                                         AUTO
    db_domain
    dispatchers                                             (PROTOCOL=TCP) (SERVICE=mydbXDB)
    background_dump_dest                                        /u01/app/oracle/admin/mydb/bdump
    user_dump_dest                                             /u01/app/oracle/admin/mydb/udump
    core_dump_dest                                             /u01/app/oracle/admin/mydb/cdump
    audit_file_dest                                         /u01/app/oracle/admin/mydb/adump
    MYDB     mydb                    2622254467
    10.2.0.1.0     ACTIVE
    cluster_database                                        FALSE
    undo_management                                         AUTO
    db_domain
    dispatchers                                             (PROTOCOL=TCP) (SERVICE=mydbXDB)
    background_dump_dest                                        /u01/app/oracle/admin/mydb/bdump
    user_dump_dest                                             /u01/app/oracle/admin/mydb/udump
    core_dump_dest                                             /u01/app/oracle/admin/mydb/cdump
    audit_file_dest                                         /u01/app/oracle/admin/mydb/adump
    MYDB     mydb                    2622254467
    10.2.0.1.0     ACTIVE
    cluster_database                                        TRUE
    undo_management                                         AUTO
    db_domain
    dispatchers                                             (PROTOCOL=TCP) (SERVICE=mydbXDB)
    background_dump_dest                                        /u01/app/oracle/admin/mydb/bdump
    user_dump_dest                                             /u01/app/oracle/admin/mydb/udump
    core_dump_dest                                             /u01/app/oracle/admin/mydb/cdump
    audit_file_dest                                         /u01/app/oracle/admin/mydb/adump
    MYDB     mydb                    2622254467
    10.2.0.1.0     ACTIVE
    cluster_database                                        TRUE
    undo_management                                         AUTO
    db_domain
    dispatchers                                             (PROTOCOL=TCP) (SERVICE=mydbXDB)
    background_dump_dest                                        /u01/app/oracle/admin/mydb/bdump
    user_dump_dest                                             /u01/app/oracle/admin/mydb/udump
    core_dump_dest                                             /u01/app/oracle/admin/mydb/cdump
    audit_file_dest                                         /u01/app/oracle/admin/mydb/adump
    MYDB     mydb                    2622254467
    10.2.0.1.0     ACTIVE
    cluster_database                                        TRUE
    undo_management                                         AUTO
    db_domain
    dispatchers                                             (PROTOCOL=TCP) (SERVICE=mydbXDB)
    background_dump_dest                                        /u01/app/oracle/admin/mydb/bdump
    user_dump_dest                                             /u01/app/oracle/admin/mydb/udump
    core_dump_dest                                             /u01/app/oracle/admin/mydb/cdump
    audit_file_dest                                         /u01/app/oracle/admin/mydb/adump
    Please help me where I am making mistake.
    Thanks

    1) I have created single node standard database called mydb in /u01/app/oracle/product/10.2.0/db_1 home (hostname linux1)
    2) installed crs and asm on linux1 and linux2 and shared storag on ASM(which external HD running ieee1294 cards and ports) . no database is created on linux1 or linux2
    3) I want to convert mydb to RAC DATABASE called mydb1 instance on linux1 and mydb2 on linux2 machine respectively.
    4) copied and modifed xml as you see above called ConvertTomydb.xml to $ORACLE_HOME/bin directory
    5) when I run
    $rconfig ConvertTomydb.xml from $ORACLE_HOME/bin directory , i get the following error
    <ConvertToRAC>
    <Convert>
    <Response>
    <Result code="1" >
    Operation Failed
    </Result>
    <ErrorDetails>
    Clusterware is not configured
    </ErrorDetails>
    </Response>
    </Convert>
    </ConvertToRAC>
    $
    Please see my crs_stat -t command output
    Name Type Target State Host
    ora....SM1.asm application ONLINE ONLINE linux1
    ora....X1.lsnr application ONLINE ONLINE linux1
    ora.linux1.gsd application ONLINE ONLINE linux1
    ora.linux1.ons application ONLINE ONLINE linux1
    ora.linux1.vip application ONLINE ONLINE linux1
    ora....SM2.asm application ONLINE ONLINE linux2
    ora....X2.lsnr application ONLINE ONLINE linux2
    ora.linux2.gsd application ONLINE ONLINE linux2
    ora.linux2.ons application ONLINE ONLINE linux2
    ora.linux2.vip application ONLINE ONLINE linux2
    ora.orcl.db application ONLINE ONLINE linux1
    ora....l1.inst application ONLINE ONLINE linux1
    ora....l2.inst application ONLINE ONLINE linux2
    ora....test.cs application ONLINE ONLINE linux1
    ora....cl1.srv application ONLINE ONLINE linux1
    ora....cl2.srv application ONLINE UNKNOWN linux2
    please see the output from olsnodes command
    [oracle@linux1 bin]$ olsnodes
    linux1
    linux2
    [oracle@linux1 bin]$
    What is your cache fusion interconnect strategy?
    I don't about this, please let me know where can i find the answers. what kind of command do i have to use get the answer
    damorgan , Please let me know, if I gave answers to your questions. if not please let me know, i can give as much as possible. i really appreciate for your help
    Thanks

  • Steps to Convert R12 Non-Rac to RAC database with ASM

    dear All,
    We have following environment.
    R12.0.6 with a non RAC 11.2.0.2 database on on AIX (64bit). Datafiles are stored local filesystem. We want to do the following.
    Migrate the database file to ASM
    convert database Non RAC to RAC
    we have gone through many oracle support documents but were unable to decide which path we should adopt. Any body who has done similar activity; please share only highly level steps. No step by step Instructions are needed. e.g. Install Grid Infrastructure (for single instance or the one which comes with cluster home???????), Move datafiles to ASM etc etc
    Please make sure the steps are for 11gR2 and EBS R12.
    Best Regards,

    we have gone through many oracle support documents but were unable to decide which path we should adopt. Any body who has done similar activity; please share only highly level steps. No step by step Instructions are needed. e.g. Install Grid Infrastructure (for single instance or the one which comes with cluster home???????), Move datafiles to ASM etc etc
    Please make sure the steps are for 11gR2 and EBS R12. The steps in [ID 823587.1] which is referenced above should be sufficient (from your post, I understand that you have covered the steps in this doc) -- What exactly you have issues with?
    Thanks,
    Hussein

  • Migrating from WE8ISO8859P1 to AR8MSWIN1256

    Hi, i am trying to migrate my data from WE8ISO8859P1 to AR8MSWIN1256.
    The problem is that the client apparently has its data stored in WE8ISO8859P1 but
    to read data from the database was using some function his developers coded which converts the characters read
    into a non standard charset format because they wanted the data to be shown in farsi which would have been resolved
    a long time ago had they used AR8MSIN1256.
    So they are retrieving characters stored in WEISO8859P1,transform them using this function which is a PLSQL function by the way, and show the right data which is in a non standard charset.
    knowing that AR8MSWIN1256 is not a superset of WE8ISO8859P1, i still tried to import/export the data but of course it did not work.
    can anybody give me some ideas to work with?
    thank you

    i know there should not be this function in the middle, but anyway i am trying this on a test DB.
    here's the code for that function
    CREATE OR REPLACE FUNCTION convertp ( panizstr varchar2)
    RETURN VARCHAR2
    IS
    type t_paniz is table of char index by binary_integer;
    type t_asci is table of char index by binary_integer;
    tpaniz varchar2(45);
    tasci t_asci;
    len number;
    i number;
    res number;
    cod number;
    j number;
    freturn varchar2(55);
    BEGIN
    i:=1;
    j:=1;
    tpaniz:=panizstr;
    len:=length(panizstr);
    while (i&lt;=55) loop
    tasci(i):='';
    i:=i+1;
    end loop;
    res:=0;
    i:=1;
    while (i &lt;=len) loop
    cod:=0;
    --alef
    if (ascii(substr(panizstr,i,1)))=145
    then
    tasci(j):='&Acirc;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --alef
    if (ascii(substr(panizstr,i,1)))=146 or
    (ascii(substr(panizstr,i,1)))=147 then
    tasci(j):='&Ccedil;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --en
    if (ascii(substr(panizstr,i,1)))=142 or
    (ascii(substr(panizstr,i,1)))=143 then
    tasci(j):=' ';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --hamze
    if (ascii(substr(panizstr,i,1)))=148
    then
    tasci(j):='&AElig;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --hamze
    if (ascii(substr(panizstr,i,1)))=149
    then
    tasci(j):='&Aacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --be
    if (ascii(substr(panizstr,i,1)))=150
    then
    tasci(j):='&Egrave;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --en
    if (ascii(substr(panizstr,i,1)))=142
    then
    tasci(j):=' ';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --pe
    if (ascii(substr(panizstr,i,1)))=151
    then
    tasci(j):='';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --te
    if (ascii(substr(panizstr,i,1)))=152
    then
    tasci(j):='&Ecirc;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --the
    if (ascii(substr(panizstr,i,1)))=153
    then
    tasci(j):='&Euml;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --jim
    if (ascii(substr(panizstr,i,1)))=154 then
    tasci(j):='&Igrave;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --jim
    if (ascii(substr(panizstr,i,1)))=155
    then
    tasci(j):='&Igrave;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --che
    if (ascii(substr(panizstr,i,1)))=156
    then
    tasci(j):='';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --che
    if (ascii(substr(panizstr,i,1)))=157 then
    tasci(j):='';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --he
    if (ascii(substr(panizstr,i,1)))=158
    then
    tasci(j):='&Iacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --he
    if (ascii(substr(panizstr,i,1)))=159 then
    tasci(j):='&Iacute;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --khe
    if (ascii(substr(panizstr,i,1)))=160
    then
    tasci(j):='&Icirc;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --khe
    if (ascii(substr(panizstr,i,1)))=161 then
    tasci(j):='&Icirc;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --dal
    if (ascii(substr(panizstr,i,1)))=162 then
    tasci(j):='&Iuml;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --zal
    if (ascii(substr(panizstr,i,1)))=163 then
    tasci(j):='&ETH;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --Re
    if (ascii(substr(panizstr,i,1)))=164 then
    tasci(j):='&Ntilde;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ze
    if (ascii(substr(panizstr,i,1)))=165 then
    tasci(j):='&Ograve;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --je
    if (ascii(substr(panizstr,i,1)))=166 then
    tasci(j):='Ž';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --sin
    if (ascii(substr(panizstr,i,1)))=167 or
    (ascii(substr(panizstr,i,1)))=168 then
    tasci(j):='&Oacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --shin
    if (ascii(substr(panizstr,i,1)))=169 or
    (ascii(substr(panizstr,i,1)))=170 then
    tasci(j):='&Ocirc;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --sad
    if (ascii(substr(panizstr,i,1)))=171 or
    (ascii(substr(panizstr,i,1)))=172 then
    tasci(j):='&Otilde;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --zad
    if (ascii(substr(panizstr,i,1)))=173 or
    (ascii(substr(panizstr,i,1)))=174 then
    tasci(j):='&Ouml;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ta
    if (ascii(substr(panizstr,i,1)))=175 then
    tasci(j):='&Oslash;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --za
    if (ascii(substr(panizstr,i,1)))=224 then
    tasci(j):='&Ugrave;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ein
    if (ascii(substr(panizstr,i,1))) =225 or
    (ascii(substr(panizstr,i,1)))=226 then
    tasci(j):='&Uacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ein
    if (ascii(substr(panizstr,i,1))) =227 or
    (ascii(substr(panizstr,i,1)))=228 then
    tasci(j):='&Uacute;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --ghein
    if (ascii(substr(panizstr,i,1))) &gt;=229 and
    (ascii(substr(panizstr,i,1)))&lt;=230 then
    tasci(j):='&Ucirc;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ghein
    if (ascii(substr(panizstr,i,1))) &gt;=231 and
    (ascii(substr(panizstr,i,1)))&lt;=232 then
    tasci(j):='&Ucirc;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --fe
    if (ascii(substr(panizstr,i,1)))=233
    then
    tasci(j):='&Yacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ghaf
    if (ascii(substr(panizstr,i,1)))=234
    then
    tasci(j):='&THORN;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ghaf
    if (ascii(substr(panizstr,i,1)))=235 then
    tasci(j):='&THORN;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --kaf
    if (ascii(substr(panizstr,i,1)))=236
    then
    tasci(j):='&tilde;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ghaf
    if (ascii(substr(panizstr,i,1)))=237
    then
    tasci(j):='';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --lam
    if (ascii(substr(panizstr,i,1)))=238
    then
    tasci(j):='&aacute;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):='&Ccedil;';
    goto endofloop;
    end if;
    --lam
    if (ascii(substr(panizstr,i,1)))=239
    then
    tasci(j):='&aacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --lam
    if (ascii(substr(panizstr,i,1)))=240 then
    tasci(j):='&aacute;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --mim
    if (ascii(substr(panizstr,i,1)))=241
    then
    tasci(j):='&atilde;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --mim
    if (ascii(substr(panizstr,i,1)))=242 then
    tasci(j):='&atilde;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --noon
    if (ascii(substr(panizstr,i,1)))=243
    then
    tasci(j):='&auml;';
    cod := 1;
    res:=1;
    goto endofloop;
    end if;
    --noon
    if (ascii(substr(panizstr,i,1)))=244 then
    tasci(j):='&auml;';
    cod := 1;
    res:=1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --vav
    if (ascii(substr(panizstr,i,1)))=245 or
    (ascii(substr(panizstr,i,1)))=246 then
    tasci(j):='&aelig;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --he
    if (ascii(substr(panizstr,i,1))) &gt;=247 and
    (ascii(substr(panizstr,i,1)))&lt;=248 then
    tasci(j):='&aring;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --he
    if (ascii(substr(panizstr,i,1))) &gt;=249 and
    (ascii(substr(panizstr,i,1)))&lt;=250 then
    tasci(j):='&aring;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --ye
    if (ascii(substr(panizstr,i,1))) =251 then
    tasci(j):='&iacute;';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --ye
    if (ascii(substr(panizstr,i,1)))=252 or
    (ascii(substr(panizstr,i,1)))=254 then
    tasci(j):='&iacute;';
    res:=1;
    cod := 1;
    j:=j+1;
    tasci(j):=' ';
    goto endofloop;
    end if;
    --1
    if (ascii(substr(panizstr,i,1)))=49 or (ascii(substr(panizstr,i,1)))=129 then
    tasci(j):='1';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --2
    if (ascii(substr(panizstr,i,1)))=50 or (ascii(substr(panizstr,i,1)))=130 then
    tasci(j):='2';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --3
    if (ascii(substr(panizstr,i,1)))=51 or (ascii(substr(panizstr,i,1)))=131 then
    tasci(j):='3';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --4
    if (ascii(substr(panizstr,i,1)))=52 or (ascii(substr(panizstr,i,1)))=132 then
    tasci(j):='4';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --5
    if (ascii(substr(panizstr,i,1)))=53 or (ascii(substr(panizstr,i,1)))=133 then
    tasci(j):='5';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --6
    if (ascii(substr(panizstr,i,1)))=54 or (ascii(substr(panizstr,i,1)))=134 then
    tasci(j):='6';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --7
    if (ascii(substr(panizstr,i,1)))=55 or (ascii(substr(panizstr,i,1)))=135 then
    tasci(j):='7';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --8
    if (ascii(substr(panizstr,i,1)))=56 or (ascii(substr(panizstr,i,1)))=136 then
    tasci(j):='8';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --9
    if (ascii(substr(panizstr,i,1)))=57 or (ascii(substr(panizstr,i,1)))=137 then
    tasci(j):='9';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    --0
    if (ascii(substr(panizstr,i,1)))=48 or (ascii(substr(panizstr,i,1)))=128 then
    tasci(j):='0';
    res:=1;
    cod := 1;
    goto endofloop;
    end if;
    &lt;&lt;endofloop&gt;&gt;
    if (res=0) then
    tasci(j):= substr(panizstr,i,1);
    end if;
    if (cod=0) then
    tasci(j):= substr(panizstr,i,1);
    end if;
    i:=i+1;
    j:=j+1;
    end loop;
    --freturn:=tasci(1)||tasci(2)||to_char(ascii(substr(panizstr,1,1)),'999');
    freturn:=tasci(1)||tasci(2)||tasci(3)||tasci(4)||tasci(5)||tasci(6)||tasci(7)||tasci(8)||
    tasci(9)||tasci(10)||tasci(11)||tasci(12)||tasci(13)||tasci(14)||tasci(15)||tasci(16)||tasci(17)||tasci(18)||tasci(19)||tasci(20)||tasci(21)||tasci(22)||tasci(23)||tasci(24)||tasci(25)||
    tasci(26)||tasci(27)||tasci(28)||tasci(29)||tasci(30)||tasci(31)
    ||tasci(32)||tasci(33)||tasci(34)||tasci(35)
    ||tasci(36)||tasci(37)||tasci(38)||tasci(39)
    ||tasci(40)||tasci(41)||tasci(42)||tasci(43)||tasci(44)||tasci(45)
    ||tasci(46)||tasci(47)||tasci(48)||tasci(49)||tasci(50)||tasci(51)
    ||tasci(52)||tasci(53)||tasci(54)||tasci(55);
    return freturn;
    END convertp;
    this lacks a proper documentation i know but this is how i got it, sorry about this.Anyway thank you so much for your time and patience

  • Conversion failed when converting date and/or time from character string

    Hi experts,
    I'm trying running a query in Microsoft Query but it gives the following error message:
    "conversion failed when converting date and/or time from character string"
    when asks me the data I'm inserting 31-01-2014
    i've copy the query form the forum:
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
         CASE  WHEN T0.TransType=13 THEN 'Invoice'
              WHEN T0.TransType=14 THEN 'Credit Note'
              WHEN T0.TransType=30 THEN 'Journal'
              WHEN T0.TransType=24 THEN 'Receipt'
              END AS 'Document Type',
         T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
    ORDER BY T1.CardCode, T0.DueDate, T0.Ref1

    Hi,
    The above error appears due to date format is differnt from SAP query generator and SQL server.
    So you need convert all date in above query to SQL server required format.
    Try to convert..let me know if not possible.
    Thanks & Regards,
    Nagarajan

  • Error synchroniz​ing with Windows 7 Contacts: "CRADSData​base ERROR (5211): There is an error converting Unicode string to or from code page string"

    CRADSDatabase ERROR (5211): There is an error converting Unicode string to or from code page string
    Device          Blackberry Z10
    Sw release  10.2.1.2977
    OS Version  10.2.1.3247
    The problem is known by Blackberry but they didn't make a little effort to solve this problem and they wonder why nobody buy Blackberry. I come from Android platform and I regret buying Blackberry: call problems(I sent it to service because the people that I was talking with couldn't hear me), jack problems (the headphones does not work; I will send it again to service). This synchronisation problem is "the drop that fills the glass". Please don't buy Blackberry any more.
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?noCount=true&externalId=KB33098&sliceId=2&di​...

    This is a Windows registry issue, if you search the Web using these keywords:
    "how to fix craddatabase error 5211"       you will find a registry editor that syas it can fix this issue.

  • Error "Conversion failed when converting date and/or time from character string" to execute one query in sql 2008 r2, run ok in 2005.

    I have  a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
    USE [Runtime]
    GO
    /****** Object:  UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt]    Script Date: 06/11/2013 08:47:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE   FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)  
    -- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
    RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
    AS  
    BEGIN 
    -- Crea el Cursor
    DECLARE cursorHora CURSOR
    READ_ONLY
    FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
    -- Declaracion de variables locales
    DECLARE @produc_opt_hora int
    DECLARE @produc_opt_parc int
    DECLARE @nsacos int
    DECLARE @time_parc datetime
    -- Inicializamos VARIABLES
    SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
    -- Abre y se crea el conjunto del cursor
    OPEN cursorHora
    -- Comenzamos los calculos 
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    /************  BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR  ************/
    WHILE (@@fetch_status <> -1)
    BEGIN
    IF (@@fetch_status = -2)
    BEGIN
    -- Terminamos la ejecucion 
    BREAK
    END
    -- REALIZAMOS CÁLCULOS
    SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
    -- INSERTAMOS VALORES EN LA TABLA
    INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
    -- Avanzamos el cursor
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    END
    /************  FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR  ***************/
    -- Cerramos el cursor
    CLOSE cursorHora
    -- Liberamos  los cursores
    DEALLOCATE cursorHora
    RETURN 
    END

    You can search the forums for that error message and find previous discussions - they all boil down to the same problem.  Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime.  In general,
    this works in any version of sql server if the runtime settings are correct for the format of the string data.  The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
    the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers. 
    I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion.  It may not be in the function you posted, since that function also executes other functions. 
    You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all. 
    Tibor's site

  • Acrobat XI Pro will not activate when trying to convert to an Acrobat form from an existing Word document

    My version of  Acrobat XI Pro will not activate when trying to convert to an Acrobat form from an existing Word document.  Acrobat not responding.
    Please advise
    John B

    Hi johnb69345359,
    I am sorry for the inconvenience caused. Lets try to resolve this issue.
    I would require few details in order to diagnose the issue correctly :-
    1) Are you able to launch Acrobat XI pro ?
    If yes, please try Help -> Repair option to repair Acrobat XI pro. Then try to perform the covert operation.
    2) Let me know the Operating system installed on your computer.
    3) Is there any error code or error message?
    Regards,
    Aadesh

Maybe you are looking for

  • OHS 11gR1 web-page not showing up after creation, registration of webgate

    Hello there, The OHS webpage on host:7777 is not showing up after I created, registered the webgate on oam 11g console. I copied the 2 artifacts into the ohs proxy server box in the webgate/config folder and restarted OHS instance but now, the ohs pa

  • Restrictions on JPanel

    Sorry, just deleted the whole post. It was about having trouble calling up a class which extends a JPanel from a class which extends a JFrame. I have messed about a little and came up with this. I have to add my JPanel class to a JFrame, so in my JFr

  • Creating onrollover / onrollout button that plays its full ONanimation when touched

    Hey all, On most of my option MC's I have something like: this.onRollOver = function(){ this.gotoAndPlay("onanim") this.onRollOut = function(){ this.gotoAndPlay("offanim") Obviousy if you quickly roll on and then off the MC the animation is staggergy

  • Heads Up Notification Not working

    Hello To All A7000 Users,I Purchased This Phone Days Ago and There was an ota update soon...i updated my phone...nothing was wrong and everything is working fine except the HEADS UP NOTIFICATION ..when ever there's a call or a msg on my home i am not

  • Combine two iTunes accounts

    I've seen the responses on previous post (at least some of them) saying it is not necessary to combine two iTunes accounts.  The solution is to authorize both accounts on all computers and you're fine.  I disagree. First, my wife and I have three iTu