The following error occurs when I open the database today and want to modify the archive mode of oracle: SQL> alter database archivelog;Alter database archivelog *ERROR at line 1:ORA-00265: instance recovery required, cannot set ARCHIVELOG mode I
Java codeCreate or replace procedure stored procedure name (param1 in type, param2 out type) As Variable 1 type (value range ); Variable 2 type (value range ); Begin Select count (*) into variable 1 from Table A where column name = param1; If
DECODE (condition, value 1, translation value 1, value 2, translation value 2,... value n, translation value n, default value)
Value indicates any column of any type in a table or any result obtained by calculation. When each value is tested, if
On the mesh-controlled OMA side, if the yast package is not installed, the Administration tab cannot be displayed normally!1. [root @ primary ~] # Wget http://oss.oracle.com/projects/yast/dist/files/el5/x86_64/yast_el5_x86_64.tar2. [root @ primary ~]
Log on as an administrator:1. First, create (new) Users:Create user username identified by password;Username: username of The New User NamePassword: password of the new userYou can also use the previous user instead of creating a new user. For
My friend built an index on a million table and it didn't end in half an hour. So we will discuss how to speed up.
I. First, let's take a look at the operations to create an index:
1. Read the data of the index key to the memory.
==> If data is
REDO
Oracle maintains two types of redo log files: online redo log files and archived redo log files.
Online redo logs are used to "correct" data files in the case of power failure (instance termination), while archived redo logs are used to
Environment: linux system tools: PL/SQL DEVELOPERStep 1: view the tablespace name and file location: select tablespace_name, file_id, file_name, round (bytes/(1024*1024), 0) total_spacefrom dba_data_filesorder by tablespace_name
Step 2: increase the
-- Add one minute to the specified time
SELECT to_char (to_date ('2017-11-09 15:30:30 ', 'yyyy-MM-DD HH24: MI: ss') + (2011), 'yyyy-MM-DD HH24: MI: SS ') as newDate FROM dual;
-- Subtract two times
Select to_date ('2017-11-09 15:30:30 ',
1. Create a test table
Use the sys user to create a test table
SQL> CREATE TABLE HR. ST (ID NUMBER, TIME DATE );
Table created.
SQL> INSERT INTO HR. ST SELECT ROWNUM, CREATED FROM DBA_OBJECTS;
50416 rows created.
SQL> commit;
Commit complete.
2.
Oracle 10 Gb provides a new performance collection and analysis tool awr (automaticworkload repository ).
Awr exists in the sysaux tablespace and is one of the main users of sysaux.
Snapshot, a set of performance statistics captured at a specific
Oracle10g Data Pump EXPDP and IMPDP backup and recovery dataI. Preparations before Database BackupCreate a backup DIRECTORY and authorize it to the userSteps:1. log on to sqlplusAccount name: ptemp password: 000000 host string: EMPDBSqlPlus
Oracle functions for obtaining the start time and end time of the last ten days
[SQL] -- get create or replace function fd_lastxunstart (rq in date) return string is refstr varchar2 (50); v_rq date; begin -- get date v_rq of the last ten: = trunc
Oracle encryption Stored Procedure Method 1. oracle built-in tools 1. c: \> set NLS_LANG = AMERICAN_AMERICA.USACII7 or c: \> set NLS_LANG = AMERICAN_AMERICA.WE8ISO8859P1 or c: \> set NLS_LANG = AMERICAN_AMERICA.ZHS16GBK (this can be used when an
Add the Oracle temp tablespace (raw device mode) in the Aix system to query the usage of the temporary tablespace:
SELECT D.TABLESPACE_NAME,SPACE "SUM_SPACE(M)",BLOCKS SUM_BLOCKS,USED_SPACE "USED_SPACE(M)",ROUND(NVL(USED_SPACE,0)/SPACE*100,2)
Oracle 10g Database Character Set Change and exceptions 1. change the DATABASE character SET to gbkshutdown immediate; startup mount exclusive; alter system enable restricted session; alter system set JOB_QUEUE_PROCESSES = 0; alter system set
Create external tables and load data in ORACLE. external table feature data files are stored outside the operating system and are formatted and segmented. oracle External tables access data in data files through SQL. The data does not need to be
Edit of linux oracle sqlplus
SQL> editWrote file afiedt. buf120
As shown in the preceding figure when sqlplus starts to use the edit command, it is okay after I set vi to the Default Editor:
SQL> DEFINE _ EDITOR = vi
However, in this case, I
Four ways to modify the ORACLE-NLS_DATE_FORMAT time format change the display of the time display format in ORACLE-NLS_DATE_FORMAT:
1. You can specify (LINUX) in user environment variables ). Add the following sentence to your. bash_profile: export
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.