Build new database through scripts must understand spanish character sets.
Hello Gurus,
I need some simple advice, a good chance for some quick points for you.
I have never built a database to understand any other character set other than American English. I now have to build a database that will be used for Spanish characters- keyboards, etc. But I will be using English for the 11g software install. I only wish to be able to show Spanish characters in the data for customers names.
I will be creating the database with scripts I have made to make the standard template for database files, control files, etc.
Then I will be importing from a dump I have done that was made with American English character sets.
System is 11g (11.2.0.3.0) on Linux Enterprise Server 5.8.
I was thinking to use the AL32UTF8 character set, but I am unsure where to use it.
My original test did not show Spanish characters for customers names like the 'tilda' or 'sueano' (pardon my spelling). But in this case I did not make the exeception for Spanish, I only used the standard American English build (no changes in the init.ora file or initial database build script).
How can I adjust my parameter file for the initial creation of the database template to be able to understand the Spanish character set and still be able to import my dump file without error.
EXAMPLE of a build script:
CREATE DATABASE mynewdb
USER SYS IDENTIFIED BY sys_password
USER SYSTEM IDENTIFIED BY system_password
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/mynewdb/redo01.log') SIZE 100M,
GROUP 2 ('/u01/app/oracle/oradata/mynewdb/redo02.log') SIZE 100M,
GROUP 3 ('/u01/app/oracle/oradata/mynewdb/redo03.log') SIZE 100M
MAXLOGFILES 5
MAXLOGMEMBERS 5
MAXLOGHISTORY 1
MAXDATAFILES 100
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET AL16UTF16
If I replace NATIONAL CHARACTER SET AL16UTF16 to AL32UTF8 will it work to show Spanish characters?
Sorry for the long winded question, any advice will be great.
Thankfully,
Shawn
Hello,
the national charsets is for column types like nvarchar not for normal varchar data types. So if your dump file contains such column types you will also need to set it. The charset is for the normal column types like varchar. The use of unicode is best pratice if you use multiel language, but keep in mind that multibyte charset can be a problem during the import because varchar2(10) means 10byte and not 10 chars, so errors like identifier to long can occur during import.
You can create the database.
Check this documentation:
http://docs.oracle.com/cd/B28359_01/server.111/b28298/ch2charset.htm
You can use a charset like WE8MSWIN1252 which covers spanish also (as far i know) and is a superset to us7ascii
regards
Peter
Similar Messages
-
Save .wav file into database through script
Hi,
I want to store a .wav file into a database through script. Is that possible to do it through the ccx script?
Thanks,
HowYeeHi,
At this moment, script can save the file only to Custom directory of UCCX. It's not possible to save it to external DB.
Regards
GP. -
How to Import Database user in oracle which have character set AL32UTF8?
Hello All,
I want export one database user which have character set in WE8MSWIN1252 and I want to Import that Database user in oracle which have character set AL32UTF8 without changing character set.
is there any argument in import command??
thanksThere's no problem, export and import will take care of character set conversions, the only problem is AL32UTF8 is a variable size character set, if 'ñ' uses 1 byte in WE8MSWIN1252, in AL32UTF8 it will use 2 bytes, so it's recommended to pre-create the tables with "char" instead of "byte": create table xxx ( col1 varchar2(100 char), ... )
Enrique -
ORA-12547 error while creating new database through dbca
i installed oracle 10g R2 on parallels virtuozzo container. (it is a product similar to openvz and solaris containers)
added: oracle version is 10.2.0.1.0
the installation goes off without too much fuss but when i try to create a general purpose database through dbca it throws up an error
ORA-12547 : TNS lost contact
my listener is up and runing and did stop and restart it. i also created a new listener after deleting the previous one.
still the error persists.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 19-MAY-2009 15:39:06
Uptime 0 days 0 hr. 55 min. 56 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /export/home/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /export/home/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyi am running dbca from oracle user only and i did ensure that the contents of the oracle home directory (on which oracle is installed) has permissions of oracle:oinstall.
i am clueless as to what is causing this error.
just to add to issues which i faced during installation on virtuozzo containers. containers does not allow me to create a swap space. but i had to ignore the error and go ahead with the installation with most of the steps followed from http://wiki.openvz.org/Oracle_10g_VE.
please guide
Edited by: iinfi on May 19, 2009 4:53 PMhi all
virtuozzo during creation of containers doesnt install the following.
sysstat-5.0.5-1
libaio-0.3.103-3
libaio-0.3.103-3 (i386)
libaio-devel-0.3.103-3
the oracle documentation tells us to install the following and so i didnt know i had to install other packages as well.
make-3.79.1
gcc-3.2.3-34
glibc-2.3.2-95.20
compat-db-4.0.14-5
compat-gcc-7.3-2.96.128
compat-gcc-c++-7.3-2.96.128
compat-libstdc++-7.3-2.96.128
compat-libstdc++-devel-7.3-2.96.128
openmotif21-2.1.30-8
setarch-1.3-1
thanks for your time. -
New database create script using DBCA
Hi,
I'm trying to generate a database create script using DBCA. I have another database running on the same physical server(HP-UX and oracle 10g R2). When I run the DBCA, it is creating scripts to Clone DB and Clone RMAN restore. Why it is not generating to create a new database instead of cloning the DB.
ThanksRock2 wrote:
Hi,
I'm trying to generate a database create script using DBCA. I have another database running on the same physical server(HP-UX and oracle 10g R2). When I run the DBCA, it is creating scripts to Clone DB and Clone RMAN restore. Why it is not generating to create a new database instead of cloning the DB.
ThanksWhen you launch dbca, you need to select to create a 'custom' database, not one of the pre-canned templates. The templates will all result in a script that does an rman restore from a backup that comes with the product. Selecting 'custom' database will result in scripts built around the CREATE DATABASE sql statement. -
NLS settings for a database link between DBs with different character sets
I am using a database link to move data from one database to another and I am seeing some strange data problems. The databases have different character sets and different NLS settings. I wonder if this could be causing my problem.
Here are the NLS parameters for the database where the database link exists. (the SOURCE database)
1 NLS_CALENDAR GREGORIAN
2 NLS_CHARACTERSET WE8MSWIN1252
3 NLS_COMP BINARY
4 NLS_CURRENCY $
5 NLS_DATE_FORMAT DD-MON-RR
6 NLS_DATE_LANGUAGE AMERICAN
7 NLS_DUAL_CURRENCY $
8 NLS_ISO_CURRENCY AMERICA
9 NLS_LANGUAGE AMERICAN
10 NLS_LENGTH_SEMANTICS BYTE
11 NLS_NCHAR_CHARACTERSET AL16UTF16
12 NLS_NCHAR_CONV_EXCP FALSE
13 NLS_NUMERIC_CHARACTERS .,
14 NLS_SORT BINARY
15 NLS_TERRITORY AMERICA
16 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
17 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
18 NLS_TIME_FORMAT HH.MI.SSXFF AM
19 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
Here are the NLS parameters for the database that the database link connects to. (the TARGET database)
1 NLS_CALENDAR GREGORIAN
2 NLS_CHARACTERSET AL32UTF8
3 NLS_COMP BINARY
4 NLS_CURRENCY $
5 NLS_DATE_FORMAT DD-MON-RR
6 NLS_DATE_LANGUAGE AMERICAN
7 NLS_DUAL_CURRENCY $
8 NLS_ISO_CURRENCY AMERICA
9 NLS_LANGUAGE AMERICAN
10 NLS_LENGTH_SEMANTICS BYTE
11 NLS_NCHAR_CHARACTERSET AL16UTF16
12 NLS_NCHAR_CONV_EXCP FALSE
13 NLS_NUMERIC_CHARACTERS .,
14 NLS_SORT BINARY
15 NLS_TERRITORY AMERICA
16 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
17 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
18 NLS_TIME_FORMAT HH.MI.SSXFF AM
19 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
The SOURCE database version is 10g Release 10.2.0.3.0 - Production
The TARGET database version is 11g Release 11.1.0.6.0 - 64bit Production
Do I need to modify the NLS settings in the SOURCE database before executing a script to insert data into the TARGET database?
Thanks, JackThe difference in settings is not a problem by itself, especially that only the NLS_CHARACTERSET matters. Of course, this difference may lead to certain issues if not taken into consideration.
Please, describe symptoms of your problems.
-- Sergiusz -
Build new databases using build sheets
what is build sheets?
I use dbca"build sheet" is a term used to describe the configuration of a computer server, application server or database server
-
Inserting new line in script output based on character count
Dear All,
I want to print amount in words on cheque. Condition is if on the first line the character
count reaches 40 the rest words should be printed in next line. Also amount in word
should be printed on the same line.
I have the internal table values itab-amtwords(amount in words and ) itab-rbetr(amount in number)
I want to print them something like this -
Sixty seven crore eighty five lakh twelve thousand
fourty five 678512045.00
the amount in word should come in second line only. The amount in word if reaches certain point
the rest word should print in second line.
How to write the logic in script editor
Regards,
Sandeepthe amount in number should print in the second line.
2163126312.00
regards
sandeep
Edited by: Sandeep Sahoo on Apr 17, 2009 4:34 PM
Edited by: Sandeep Sahoo on Apr 17, 2009 4:38 PM -
ISO8859 Spanish Character set Problems
Hi,
At the time, we bought a web content server (OPMKT, based JSP), we installed the
embedded Weblogic 6.1 Sp2 and using Oracle 8.1.7.
We are using the codeset we8iso8859p15 for Oracle and for Weblogic the codeset:
ISO8859_15_FDIS (Dfile.encoding)
But the special Spanish characters (i.e. accents or euro currency) using the browser
are not right.
Can anyone help me with this??? Do we need to upgrade the WL6.1 SP2 to SP4 or
SP5?
Thanks in advances,
SantosYes, Of course I was changed the WL startup scripts on NSL_LANG=ES.ISO8859_15.
and It is the same. (it is not working).
"Jo Willems" <[email protected]> wrote:
Did you specify NLS_LANG env variable in your startup script for weblogic?
j.
"Santos" <[email protected]> wrote in message
news:[email protected]..
Hi,
At the time, we bought a web content server (OPMKT, based JSP), weinstalled the
embedded Weblogic 6.1 Sp2 and using Oracle 8.1.7.
We are using the codeset we8iso8859p15 for Oracle and for Weblogicthe
codeset:
ISO8859_15_FDIS (Dfile.encoding)
But the special Spanish characters (i.e. accents or euro currency)using
the browser
are not right.
Can anyone help me with this??? Do we need to upgrade the WL6.1 SP2to SP4
or
SP5?
Thanks in advances,
Santos -
Spanish Character Sets Garbled
We have a client that is trying to use Contribute CS4 to edit some pages with Spanish content. The chacter sets show up correctly when viewing in Contribute but after publishing -- they are all garbled.
The reading I've done online consists of people mainly complaining about Contribute being horrible for multi-lingual but I haven't seen any solutions or workarounds.
Anyone got a suggestion?
Thanks!
ErikHello,
the national charsets is for column types like nvarchar not for normal varchar data types. So if your dump file contains such column types you will also need to set it. The charset is for the normal column types like varchar. The use of unicode is best pratice if you use multiel language, but keep in mind that multibyte charset can be a problem during the import because varchar2(10) means 10byte and not 10 chars, so errors like identifier to long can occur during import.
You can create the database.
Check this documentation:
http://docs.oracle.com/cd/B28359_01/server.111/b28298/ch2charset.htm
You can use a charset like WE8MSWIN1252 which covers spanish also (as far i know) and is a superset to us7ascii
regards
Peter -
SQL Server error during create database through jdbc
Hi ,
Can anybody figure why I get the following exception
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '9876'.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
I am trying to create a new database through jdbc, I use only numeric characters in the database name.
I can create the same database through SQL Enterprise Manager.
-vikramThe name of the database is 9876?
Plan A: save yourself trouble and start database/table/column names with a letter.
Plan B: if you really must, try quoting the database name: create database "9867". -
Missing Discoverer reports after migrating the EUL to new Database.
Our Environment is Discoverer Relational- OLTP
We have recently migrated the source database from Oracle 9.2.0.6 to 10.2.00.0 RAC, this made us to migrate the Discoverer to new database in production.
Below are the database objects we migrated to new database.
1. EUL schema
2. Schemas referred by the Objects in the EUL (schemas containing functions, tables, views etc)
3. Based on trigger we created to filter active discoverer database accounts, migrated only active database users to new database.
Note: we had almost 4000 Discoverer users from 2005, since many of these users moved out of company or not using discoverer permanently, and there are users who used discoverer once in year or once in 6 months.
Finally we come up with 300 Active Discoverer users to be migrated to new database.
Issues: After migration
Some of the migrated users did not get their reports migrated which are shared by other users? [Since we didn’t migrate these users schemas as they are not active].
We have queried the EUL5_DOCUMENTS table in new database for a particular inactive users account (account which is not migrated) is not showing any reports owned by him.
Since we have migrated EUL schema and active users new database, is this will effect the EUL, [Information related to non active users gets deleted from the EUL in New Database]
Some users who are not figured in the active migrated list are requesting to get access to discoverer on new database. Can you please suggest the correct way to migrate these accounts.
Exporting the accounts will work?
Thanks in advance.
SunilKanchana Devasurendra wrote:
Hi ARS,
Please check the following item in your new database.
1. log_archive_max_processes Most properbly value set for this parameter is low ( may be it's set to 1.) Please increase up ( 4)I am curious to know what makes you think 4 is the right magic number for log_archive_max_processes - after all, he's only got one archive destination.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful. -
Changing database character set from US7ASCII to AL32UTF8
Our database is running on Oracle database 10.1.0.4.0 (AIX) The following are its parameters:
SQL> select value from NLS_DATABASE_PARAMETERS where parameter='NLS_CHARACTERSET';
VALUE
US7ASCII
We would like to change the database character set to AL32UTF8. After following Metalink notes: 260192.1 (which helped us resolve "Lossy" and "Truncated" data, the final output of the CSSCAN utility is:
[Scan Summary]
All character type data in the data dictionary are convertible to the new character set
All character type application data are convertible to the new character set
[Data Dictionary Conversion Summary]
The data dictionary can be safely migrated using the CSALTER script
We have no (0) Truncation and Lossy entries on the .txt file. We only have Changeless and Convertible. Now accdg to the documentation, we can do a FULL EXP and FULL IMP. But it did not detail how to do the conversion on the same database. The discussion on the document tells how to do it from one database to another database. But how about on the same database?
We cannot use CSALTER as stated on the document.
(Step 6
Step 12
12.c) When using Csalter/Alter database to go to AL32UTF8 and there was NO "Truncation" data, only "Convertible" and "Changeless" in the csscan done in point 4:)
After performing a FULL export of the database, how can we change its character set? What do we need to do the the existing database to change its character set to AL32UTF8 before we import back our dump file into the same database?
Please help.There you are! Thanks! Seems like I am right in my understanding about the Oracle Official Documentation. Thanks!
Hmmmmm...when you say:
*"you can do selective export of only convertible tables, truncate the tables, use CSALTER, and re-import."*
This means that:
1. After running csscan on database PROD, i will take note of the convertible tables in the .txt output file.
2. Perform selective EXPORT on PROD (EXP the convertible tables)
3. Truncate the convertible tables on PROD database
4. Use CSALTER on PROD database
5. Re-import the tables into PROD database
6. Housekeeping.
Will you tell me if these steps are the correct one? Based on our scenario: This is what i have understood referring to the Official Doc.
Am i correct?
I really appreciate your help Sergiusz. -
Query distributed database with different character sets.
Hello experts, this is my situation:
I have two databases A and B, the same version 11.1.0.7, the same OS Suse Linux Enterprise 10 but with different character sets, A has WE8MSWIN1252 while B has AL32UTF8. The database B is my XML DB repository so there I have some XML type tables. I need to query this tables from the database A using a dblink and in fact I have done that but the XML content is trasformed due to the different character sets between the databases. Some time there are data loss and some time there are data missmatch.
Is there any way to query the tables stored in the database B without problems? I do not know if the following is correct: Maybe I can set the character set for the session in the database A during the time it query the database B. That is, change the character set in fly at session level.
Do you have any special suggestion?
I hope you can help me, thank you in advance.The Globalization Support Guide for 11.1.0.7 has a chapter on character set migration that should be helpful. AL32UTF8 is a superset of WE8MSWIN1252 but it is not a strict superset. That is, it doesn't meet the second prong of the test in the documentation
The new character set is a strict superset of the current character set if:
Each and every character in the current character set is available in the new character set.
Each and every character in the current character set has the same code point value in the new character set. For example, many character sets are strict supersets of US7ASCII.Exporting the data from the A, changing the character set (or creating a new database with the AL32UTF8 character set), and then importing the data may be the easiest approach in your case.
Justin
Edited by: Justin Cave on Jan 13, 2011 12:08 PM -
Can't Create Database with SJISYEN character set
I am trying to create a new database in Oracle 10g using the SJISYEN character set. The summary page display in the Database Configuration wizard shows the following
Character Sets
Database Character Set JA16SJISYEN
National Character Set AL16UTF16
The database gets created successfully with no errors, but when I query the V$NLS_PARAMETERS view, the NLS_CHARACTERSET is reported as US7ASCII
Should I be able to create a database with the SJISYEN character set with Oracle 10g?Can you please run the following SQL statement and see what you get:
SQL>
1 select * from nls_database_parameters
2* where parameter like '%CHARACTERSET'
Maybe you are looking for
-
Ipod Touch STILL won't work with Windows 64-bit
Argh! So, I've read the entries about the new Itunes 7.6, and how it should work with my Ipod Touch. I uninstalled all my previous Itunes, and Quicktime software. I then installed the new Itunes64.exe. Everything worked fine. But then, I connected by
-
How do I import my albums from Album Starter Edition 3.2 to Photoshop Elements?
-
Exporting Cross Platforms/Windows Media Encoder
(I know this is an apple forum, but I have transferred videos across platforms from a Mac to a PC. My employer wants me to create wmv files to play on windows media player and all the other forums told me to cross platforms if I couldn't pay for a pr
-
Hi, I have database 10.2.0.1(Windows 32 bit) with workflow 2.6.4. I have applied the patch 10.2.0.5 to the database 10.2..0.1. After applying the patch Enterprise Manager Configuration has failed , You can retry configuring this database with enterpr
-
Deployment of JSP application developed using Jdeveloper
Is it Possible to deploy/implement JSP Application developed using Jdeveloper and its Application Module, View object etc. , without using an Application Server, such has hosting at the ISP servers, but having Oracle as the back end ?