This document provides instructions for changing the character set of an Oracle database. It includes commands to:
1. Check the current character set settings using views like V$NLS_PARAMETERS
2. Shut down the database, mount it in restricted mode, and open it to prepare for changes
3. Use ALTER DATABASE commands to change the character set and national character set settings
Hello Everyone ! Hope everybody doing good in their work and with their busy life.
Today i am listing down some interesting ORA- errors which i found recently as a Beginner, My Good Luck i have solved those too. So, here i am Listing down the errors with solutions.
It happens when you work with oracle, you may face or might be facing.
So, guys ! Be fearless. Have a look over it. If you need any help, Please Please let me know..
Thankyou.
MySQL security is critical to ensure data security. Destruction, falsification or simply unwanted publication are the most serious threat that wait in the dark the first faux-pas of any administrator. During this session, we'll review the common vulnerabilities, the intrusion techniques, MySQL security features, and configurations.
Hello Everyone ! Hope everybody doing good in their work and with their busy life.
Today i am listing down some interesting ORA- errors which i found recently as a Beginner, My Good Luck i have solved those too. So, here i am Listing down the errors with solutions.
It happens when you work with oracle, you may face or might be facing.
So, guys ! Be fearless. Have a look over it. If you need any help, Please Please let me know..
Thankyou.
MySQL security is critical to ensure data security. Destruction, falsification or simply unwanted publication are the most serious threat that wait in the dark the first faux-pas of any administrator. During this session, we'll review the common vulnerabilities, the intrusion techniques, MySQL security features, and configurations.
Powerpoint elaborado por Milagros Medina, Emily Contrera y María Victoria González, 1ro 4ta, Ciudadanía y Participación, IPET 266 Gral. Savio, Río Tercero, 2014.
Answer questions Who, What , When and Where about any database activity by setting up an Oracle audit. The infrastructure is free and available in every database edition.
Stay on top of any possible performance and storage issues by choosing appropriate audit parameters.
Build summary and detail reports to analyze audit events from multiple databases using APEX or SQL*Plus.
Setup a data retention period and cleanup audit records regularly.
Create honeypot to attract hacker’s attention.
Enable alerts and send email notifications using Oracle Enterprise Manager infrastructure.
1. ¡ÒáÓ˹´ÀÒÉÒä·Âº¹ oracle
ÇÔ¸ÕµÃǨÊͺÀÒÉÒ
select * from v$NLS_PARAMETERS;
select * from nls_database_parameters where parameter ='NLS_CHARACTERSET';
select * from v$nls_parameters where PARAMETER like '%CHARACTERSET%';
select * from nls_session_parameters;
alter session set nls_date_format = 'yyyy/mm/dd hh24:mi:ss';
select distinct CLIENT_CHARSET from V$SESSION_CONNECT_INFO where
sid=sys_context('userenv','sid');
SQL> select * from v$nls_parameters where parameter='NLS_CHARACTERSET';
PARAMETER VALUE
-------------------- --------------------
NLS_CHARACTERSET TH8TISASCII
µÃǨÊͺµÒÃÒ§
SQL> select distinct OWNER, TABLE_NAME from DBA_TAB_COLUMNS where DATA_TYPE in
('NCHAR','NVARCHAR2', 'NCLOB');
SQL>SPOOL nlsnew.log
SQL>SHUTDOWN IMMEDIATE;
SQL>STARTUP MOUNT;
SQL> alter system enable restricted session;
SQL> alter system set job_queue_processes=0;
SQL> alter system set aq_tm_processes=0;
SQL> alter database open;
SQL> alter database amrims character set TH8TISASCII;
SQL> alter database amrims national character set UTF8;
SQL> shutdown immediate;
SQL> startup;
ÇÔ¸Õ¡ÒÃÁմѧ¹Õé
1 SQL Plus --> connect sys/sys_password as sysdba
2 update props$
set value$ = 'TH8TISASCII'
where name = 'NLS_CHARACTERSET';
3 stop database (º¹ windows ä» stop ·Õè service)
4 start database (º¹ windows ä» start ·Õè service) >Åͧ·´Êͺ´Ù (µÑÇÍÂèÒ§à»ç¹¢Í§
10g äÁè¹èÒµèÒ§¡Ñ¹)
--syntax
--ALTER DATABASE [<db_name>] CHARACTER SET <new_character_set>;
--ALTER DATABASE [<db_name>] NATIONAL CHARACTER SET <new_NCHAR_character_set>;
/*SQL> SHUTDOWN IMMEDIATE; -- or NORMAL
-- <do a full backup>
SQL> STARTUP MOUNT;
SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;
SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
SQL> ALTER DATABASE OPEN;
SQL> ALTER DATABASE CHARACTER SET <new_character_set_name>;
SQL> SHUTDOWN IMMEDIATE; -- or NORMAL
SQL> STARTUP;
*/
ÇÔ¸Õ·Ó·Õèä´é¼ÅÁÒ¡·ÕèÊØ´
--Set NLS_CHARACTERSET
sqlplus / as sysdba;
SHUTDWON IMMEDIATE;
STARTUP MOUNT;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER DATABASE OPEN;
ALTER DATABASE CHARACTER SET INTERNAL_USE TH8TISASCII; --this work
--ËÃ×Í ALTER DATABASE CHARACTER SET TH8TISASCII; --ãªéä´é㹡óշÕè set
language ·ÕèÁÕ¢¹Ò´¹éÍ¡ÇèÒÁÒÂѧ¢¹Ò´ãËè
2. SHUTDWON IMMEDIATE;
STARTUP;
--Set NLS_CHARACTERSET, NLS_NCHAR_CHARACTERSET
sqlplus / as sysdba;
SHUTDWON IMMEDIATE;
STARTUP MOUNT;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER DATABASE OPEN ;
UPDATE props$ SET value$='TH8TISASCII' WHERE name IN ('NLS_CHARACTERSET',
'NLS_NCHAR_CHARACTERSET');
commit;
SHUTDWON IMMEDIATE;
STARTUP;
ËÃ×ÍÇÔ¸Õ¡ÒÃÃÇÁ·Ñé§ÊͧÍÂèÒ§à¢éÒ´éÇ¡ѹà»ç¹ statement à´ÕÂÇ
--Set NLS_CHARACTERSET áÅÐ Set NLS_CHARACTERSET, NLS_NCHAR_CHARACTERSET
sqlplus / as sysdba;
SHUTDWON IMMEDIATE;
STARTUP MOUNT;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER DATABASE OPEN;
ALTER DATABASE CHARACTER SET INTERNAL_USE TH8TISASCII; --this work
UPDATE props$ SET value$='TH8TISASCII' WHERE name IN ('NLS_CHARACTERSET',
'NLS_NCHAR_CHARACTERSET');
commit;
SHUTDWON IMMEDIATE;
STARTUP;