0% found this document useful (0 votes)
51 views24 pages

S3DBA

The document describes configuring and testing archivelog mode in an Oracle database. It shows the steps to start SQL*Plus, connect as SYSDBA, alter the database to archivelog mode, and verify the LOG_MODE parameter changed correctly.

Uploaded by

OUMAIMA BAHAFID
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views24 pages

S3DBA

The document describes configuring and testing archivelog mode in an Oracle database. It shows the steps to start SQL*Plus, connect as SYSDBA, alter the database to archivelog mode, and verify the LOG_MODE parameter changed correctly.

Uploaded by

OUMAIMA BAHAFID
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 24

Microsoft Windows [version 10.0.19044.

2006]
(c) Microsoft Corporation. Tous droits réservés.

C:\WINDOWS\system32>sqlplus

SQL*Plus: Release 19.0.0.0.0 - Production on Lun. Oct. 3 09:20:33 2022


Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle. All rights reserved.

Entrez le nom utilisateur : sys as sysdba


Entrez le mot de passe :
ConnectÚ Ó une instance inactive.

SQL> conn
Entrez le nom utilisateur : sys as sysdba
Entrez le mot de passe :
ConnectÚ Ó une instance inactive.
SQL> desc v$database
ERROR:
ORA-01012: not logged on
ID de processus : 0
ID de session : 0, NumÚro de sÚrie : 0

SQL> desc v$database


ERROR:
ORA-01012: not logged on
ID de processus : 0
ID de session : 0, NumÚro de sÚrie : 0

SQL> desc v$database;


ERROR:
ORA-03113: fin de fichier sur canal de communication
ID de processus : 0
ID de session : 0, NumÚro de sÚrie : 0

SQL> desc v$database


ERROR:
ORA-03114: pas connectÚ Ó ORACLE
ID de processus : 0
ID de session : 0, NumÚro de sÚrie : 0

SQL> conn
Entrez le nom utilisateur : sys as sysdba
Entrez le mot de passe :
ConnectÚ.
SQL> desc v$database
Nom NULL ? Type
----------------------------------------- -------- ----------------------------
DBID NUMBER
NAME VARCHAR2(9)
CREATED DATE
RESETLOGS_CHANGE# NUMBER
RESETLOGS_TIME DATE
PRIOR_RESETLOGS_CHANGE# NUMBER
PRIOR_RESETLOGS_TIME DATE
LOG_MODE VARCHAR2(12)
CHECKPOINT_CHANGE# NUMBER
ARCHIVE_CHANGE# NUMBER
CONTROLFILE_TYPE VARCHAR2(7)
CONTROLFILE_CREATED DATE
CONTROLFILE_SEQUENCE# NUMBER
CONTROLFILE_CHANGE# NUMBER
CONTROLFILE_TIME DATE
OPEN_RESETLOGS VARCHAR2(11)
VERSION_TIME DATE
OPEN_MODE VARCHAR2(20)
PROTECTION_MODE VARCHAR2(20)
PROTECTION_LEVEL VARCHAR2(20)
REMOTE_ARCHIVE VARCHAR2(8)
ACTIVATION# NUMBER
SWITCHOVER# NUMBER
DATABASE_ROLE VARCHAR2(16)
ARCHIVELOG_CHANGE# NUMBER
ARCHIVELOG_COMPRESSION VARCHAR2(8)
SWITCHOVER_STATUS VARCHAR2(20)
DATAGUARD_BROKER VARCHAR2(8)
GUARD_STATUS VARCHAR2(7)
SUPPLEMENTAL_LOG_DATA_MIN VARCHAR2(8)
SUPPLEMENTAL_LOG_DATA_PK VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_UI VARCHAR2(3)
FORCE_LOGGING VARCHAR2(39)
PLATFORM_ID NUMBER
PLATFORM_NAME VARCHAR2(101)
RECOVERY_TARGET_INCARNATION# NUMBER
LAST_OPEN_INCARNATION# NUMBER
CURRENT_SCN NUMBER
FLASHBACK_ON VARCHAR2(18)
SUPPLEMENTAL_LOG_DATA_FK VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_ALL VARCHAR2(3)
DB_UNIQUE_NAME VARCHAR2(30)
STANDBY_BECAME_PRIMARY_SCN NUMBER
FS_FAILOVER_MODE VARCHAR2(19)
FS_FAILOVER_STATUS VARCHAR2(22)
FS_FAILOVER_CURRENT_TARGET VARCHAR2(30)
FS_FAILOVER_THRESHOLD NUMBER
FS_FAILOVER_OBSERVER_PRESENT VARCHAR2(7)
FS_FAILOVER_OBSERVER_HOST VARCHAR2(512)
CONTROLFILE_CONVERTED VARCHAR2(3)
PRIMARY_DB_UNIQUE_NAME VARCHAR2(30)
SUPPLEMENTAL_LOG_DATA_PL VARCHAR2(3)
MIN_REQUIRED_CAPTURE_CHANGE# NUMBER
CDB VARCHAR2(3)
CON_ID NUMBER
PENDING_ROLE_CHANGE_TASKS VARCHAR2(512)
CON_DBID NUMBER
FORCE_FULL_DB_CACHING VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_SR VARCHAR2(3)

SQL> select name, log_mode from v$database;

NAME LOG_MODE
--------- ------------
ORCL NOARCHIVELOG
SQL> shutdown immediate
Base de donnÚes fermÚe.
Base de donnÚes dÚmontÚe.
Instance ORACLE arrÛtÚe.
SQL> startup mount
Instance ORACLE lancÚe.

Total System Global Area 2550133384 bytes


Fixed Size 9269896 bytes
Variable Size 553648128 bytes
Database Buffers 1979711488 bytes
Redo Buffers 7503872 bytes
Base de donnÚes montÚe.
SQL> alter database archivelog
2
SQL> alter database archivelog;

Base de donnÚes modifiÚe.

SQL> alter database open;

Base de donnÚes modifiÚe.

SQL> select name, log_mode from v$database;

NAME LOG_MODE
--------- ------------
ORCL ARCHIVELOG

SQL> show parameters archive

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
archive_lag_target integer 0
log_archive_config string
log_archive_dest string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_11 string enable
log_archive_dest_state_12 string enable
log_archive_dest_state_13 string enable
log_archive_dest_state_14 string enable
log_archive_dest_state_15 string enable
log_archive_dest_state_16 string enable

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_dest_state_17 string enable
log_archive_dest_state_18 string enable
log_archive_dest_state_19 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_20 string enable
log_archive_dest_state_21 string enable
log_archive_dest_state_22 string enable
log_archive_dest_state_23 string enable
log_archive_dest_state_24 string enable
log_archive_dest_state_25 string enable
log_archive_dest_state_26 string enable
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_27 string enable
log_archive_dest_state_28 string enable
log_archive_dest_state_29 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_30 string enable
log_archive_dest_state_31 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_dest_state_9 string enable
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_dest_19 string
log_archive_dest_2 string
log_archive_dest_20 string
log_archive_dest_21 string
log_archive_dest_22 string
log_archive_dest_23 string
log_archive_dest_24 string
log_archive_dest_25 string
log_archive_dest_26 string
log_archive_dest_27 string
log_archive_dest_28 string

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_dest_29 string
log_archive_dest_3 string
log_archive_dest_30 string
log_archive_dest_31 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_duplex_dest string

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_format string ARC%S_%R.%T
log_archive_max_processes integer 4
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
SQL> select group#, stautus from v$log;
select group#, stautus from v$log
*
ERREUR Ó la ligne 1 :
ORA-00904: "STAUTUS" : identificateur non valide

SQL> select group#, status from v$log;

GROUP# STATUS
---------- ----------------
1 CURRENT
2 INACTIVE
3 INACTIVE

SQL> alter system switch logfile;

SystÞme modifiÚ.

SQL> select group#, status from v$log;

GROUP# STATUS
---------- ----------------
1 ACTIVE
2 CURRENT
3 INACTIVE

SQL> desc v$logfile


Nom NULL ? Type
----------------------------------------- -------- ----------------------------
GROUP# NUMBER
STATUS VARCHAR2(7)
TYPE VARCHAR2(7)
MEMBER VARCHAR2(513)
IS_RECOVERY_DEST_FILE VARCHAR2(3)
CON_ID NUMBER

SQL> select group#, member from v$logfile;

GROUP#
----------
MEMBER
--------------------------------------------------------------------------------
3
C:\APP\ADMIN\ORADATA\ORCL\REDO03.LOG

2
C:\APP\ADMIN\ORADATA\ORCL\REDO02.LOG

1
C:\APP\ADMIN\ORADATA\ORCL\REDO01.LOG

SQL> column member format a55


SQL> select group#, member from v$logfile;

GROUP# MEMBER
---------- -------------------------------------------------------
3 C:\APP\ADMIN\ORADATA\ORCL\REDO03.LOG
2 C:\APP\ADMIN\ORADATA\ORCL\REDO02.LOG
1 C:\APP\ADMIN\ORADATA\ORCL\REDO01.LOG

SQL> show parameters pfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string C:\APP\ADMIN\DB_HOME\DATABASE\
SPFILEORCL.ORA
SQL> show parameters spfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string C:\APP\ADMIN\DB_HOME\DATABASE\
SPFILEORCL.ORA
SQL> show parameters control

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
control_file_record_keep_time integer 7
control_files string C:\APP\ADMIN\ORADATA\ORCL\CONT
ROL01.CTL, C:\APP\ADMIN\ORADAT
A\ORCL\CONTROL02.CTL
control_management_pack_access string DIAGNOSTIC+TUNING
SQL> desc v$parameter
Nom NULL ? Type
----------------------------------------- -------- ----------------------------
NUM NUMBER
NAME VARCHAR2(80)
TYPE NUMBER
VALUE VARCHAR2(4000)
DISPLAY_VALUE VARCHAR2(4000)
DEFAULT_VALUE VARCHAR2(255)
ISDEFAULT VARCHAR2(9)
ISSES_MODIFIABLE VARCHAR2(5)
ISSYS_MODIFIABLE VARCHAR2(9)
ISPDB_MODIFIABLE VARCHAR2(5)
ISINSTANCE_MODIFIABLE VARCHAR2(5)
ISMODIFIED VARCHAR2(10)
ISADJUSTED VARCHAR2(5)
ISDEPRECATED VARCHAR2(5)
ISBASIC VARCHAR2(5)
DESCRIPTION VARCHAR2(255)
UPDATE_COMMENT VARCHAR2(255)
HASH NUMBER
CON_ID NUMBER

SQL> select description from v$parameter;

DESCRIPTION
--------------------------------------------------------------------------------
lock name space used for generating lock names for standby/clone database
user processes
user and system sessions
maintain internal timing statistics
internal os statistic gathering interval in seconds
master switch for resource limit
maximum number of non-system user sessions allowed
warning level for number of non-system user sessions
Use longer module and action
Preserve state cross standby role transition
time to delay an internal initiated abort (in seconds)

DESCRIPTION
--------------------------------------------------------------------------------
maximum number of CPUs
minimum number of CPUs required
list of instance group names
debug event control - default null string
max total SGA size
Use large pages if available (TRUE/FALSE/ONLY)
pre-page sga for process
SGA starting address (low order 32-bits on 64-bit platforms)
SGA starting address (high order 32-bits on 64-bit platforms)
Lock entire SGA in physical memory
Name of the processor group that this instance should run in.

DESCRIPTION
--------------------------------------------------------------------------------
Allow read access for SGA to users of Oracle owner group
Minimum, guaranteed size of PDB's SGA
size in bytes of shared pool
size in bytes of large pool
size in bytes of java pool
size in bytes of the streams pool
size in bytes of reserved area of shared pool
warning limit on size in bytes of a Java sessionspace
max allowed size in bytes of a Java sessionspace
limit of aggregate PGA memory for the instance or PDB
server parameter file

DESCRIPTION
--------------------------------------------------------------------------------
type of instance to be executed
use uniform timestamp formats vs pre-12.2 formats
NLS language name
NLS territory name
NLS linguistic definition name
NLS date language name
NLS Oracle date format
NLS local currency symbol
NLS numeric characters
NLS ISO currency territory name
NLS calendar system name

DESCRIPTION
--------------------------------------------------------------------------------
time format
time stamp format
time with timezone format
timestamp with timezone format
Dual currency symbol
NLS comparison
create columns using byte or char semantics by default
NLS raise an exception instead of allowing implicit conversion
Use asynch I/O for random access devices
Use asynch I/O requests for tape devices
DBWR I/O slaves

DESCRIPTION
--------------------------------------------------------------------------------
BACKUP Tape I/O slaves
Network Adapters for File I/O
IO operations on filesystem files
Max number of dNFS asynch I/O requests queued per session
clone database
instant repopulation of datafiles
http_proxy
ssl_wallet
Number of OFS threads
Resource Manager CPU allocation
resource mgr top plan

DESCRIPTION
--------------------------------------------------------------------------------
Database performance category
MAX IO per second
MAX MB per second
maximum session idle time in minutes
maximum idle time for a blocking session in minutes
interconnects for RAC use
enable file mapping
maximum number of concurrent Data Pump Jobs per PDB
maximum number of parallel processes per Data Pump Job
service names supported by the instance
Threaded Execution Mode

DESCRIPTION
--------------------------------------------------------------------------------
CloneDB Directory
Enable DNFS Dispatcher
number of background gcs server processes to start
number of active instances in the cluster database
indicates whether the instance read-only or read-write or read-mostly
Target size of SGA
Target size of Oracle SGA and PGA memory
Max size for Memory Target
control file names list
datafile name convert patterns and strings for standby/clone db
logfile name convert patterns and strings for standby/clone db

DESCRIPTION
--------------------------------------------------------------------------------
control file record keep time in days
Number of database blocks cached in memory
store checksum in db blocks and check during reads
Sets defaults for other parameters that control protection levels
Size of database block in bytes
Size of DEFAULT buffer pool for standard block size buffers
Size of cache for 2K buffers
Size of cache for 4K buffers
Size of cache for 8K buffers
Size of cache for 16K buffers
Size of cache for 32K buffers

DESCRIPTION
--------------------------------------------------------------------------------
Size of KEEP buffer pool for standard block size buffers
Size of RECYCLE buffer pool for standard block size buffers
Size of cache for imoltp buffers
Big table cache target size in percentage
whether to encrypt newly created tablespaces
number of background database writer processes to start
Number of database blocks/latches in keep buffer pool
Number of database blocks/latches in recycle buffer pool
flash cache file for default block size
flash cache size for db_flash_cache_file
Buffer cache sizing advisory

DESCRIPTION
--------------------------------------------------------------------------------
Database will be completely compatible with this software version
archival destination #1 text string
archival destination #2 text string
archival destination #3 text string
archival destination #4 text string
archival destination #5 text string
archival destination #6 text string
archival destination #7 text string
archival destination #8 text string
archival destination #9 text string
archival destination #10 text string

DESCRIPTION
--------------------------------------------------------------------------------
archival destination #11 text string
archival destination #12 text string
archival destination #13 text string
archival destination #14 text string
archival destination #15 text string
archival destination #16 text string
archival destination #17 text string
archival destination #18 text string
archival destination #19 text string
archival destination #20 text string
archival destination #21 text string

DESCRIPTION
--------------------------------------------------------------------------------
archival destination #22 text string
archival destination #23 text string
archival destination #24 text string
archival destination #25 text string
archival destination #26 text string
archival destination #27 text string
archival destination #28 text string
archival destination #29 text string
archival destination #30 text string
archival destination #31 text string
archival destination #1 state text string
DESCRIPTION
--------------------------------------------------------------------------------
archival destination #2 state text string
archival destination #3 state text string
archival destination #4 state text string
archival destination #5 state text string
archival destination #6 state text string
archival destination #7 state text string
archival destination #8 state text string
archival destination #9 state text string
archival destination #10 state text string
archival destination #11 state text string
archival destination #12 state text string

DESCRIPTION
--------------------------------------------------------------------------------
archival destination #13 state text string
archival destination #14 state text string
archival destination #15 state text string
archival destination #16 state text string
archival destination #17 state text string
archival destination #18 state text string
archival destination #19 state text string
archival destination #20 state text string
archival destination #21 state text string
archival destination #22 state text string
archival destination #23 state text string

DESCRIPTION
--------------------------------------------------------------------------------
archival destination #24 state text string
archival destination #25 state text string
archival destination #26 state text string
archival destination #27 state text string
archival destination #28 state text string
archival destination #29 state text string
archival destination #30 state text string
archival destination #31 state text string
start archival process on SGA initialization
archival destination text string
duplex archival destination text string

DESCRIPTION
--------------------------------------------------------------------------------
minimum number of archive destinations that must succeed
FAL client
FAL server list
Establish archive operation tracing level
Data Guard SYNC latency
log archive config
archival destination format
maximum I/O time before process considered hung
maximum long I/O time before process considered hung
Data Guard transport user when using password file
maximum number of active ARCH processes

DESCRIPTION
--------------------------------------------------------------------------------
redo circular buffer size
# redo blocks checkpoint threshold
Maximum time interval between checkpoints in seconds
Maximum number of seconds of redos the standby could lose
max allowable # db files
db block to be read each IO
if TRUE delay opening of read only files until first access
if TRUE startup in cluster database mode
number of instances to use for sizing cluster db SGA structures
default database location
online log/controlfile destination #1

DESCRIPTION
--------------------------------------------------------------------------------
online log/controlfile destination #2
online log/controlfile destination #3
online log/controlfile destination #4
online log/controlfile destination #5
default database recovery file location
database recovery files size limit
if auto then files are created/dropped automatically on standby
Track nologging SCN in controlfile
Redo thread to mount
List of Enabled PDB patterns
Upper bound on recovery reads

DESCRIPTION
--------------------------------------------------------------------------------
MTTR target in seconds
log checkpoint begin/end to alert file
enable lost write detection
number of server processes to use for parallel recovery
goldengate replication enabled
Enable IMC support on ADG
Maximum Flashback Database log retention time in minutes.
Size of data transfer cache
enable IMC with multi instance redo apply
ADG user account info tracked in standby(LOCAL) or in Primary(GLOBAL)
Enable DML Redirection from ADG

DESCRIPTION
--------------------------------------------------------------------------------
dml locks - one for each table modified in a transaction
tracking dependency for Replication parallel propagation
max. number of concurrent active transactions
number of active transactions per rollback segment
is temporary undo enabled
undo segment list
instance runs in SMU mode if TRUE, else in RBU mode
use/switch undo tablespace
undo retention in seconds
max number of parallel recovery slaves that may be used
set resumable_timeout

DESCRIPTION
--------------------------------------------------------------------------------
instance number
ILM Heatmap Tracking
size in bytes of in-memory area
size in bytes of in-memory xmem area
Prefer to store tables with given memcompress levels in xmem
Prefer to store tables with given priority levels in xmem
Allow creation of rowid column
header checking and data and index block checking
recyclebin processing
options for table or tablespace level compression inheritance
permit securefile storage during lob creation

DESCRIPTION
--------------------------------------------------------------------------------
Default in-memory clause for new tables
Force tables to be in-memory or not
Specifies whether in-memory queries are allowed
Controls which In-Memory Expressions are populated in-memory
Controls which user-defined virtual columns are stored in-memory
maximum inmemory populate servers
inmemory trickle repopulate servers percent
Controls whether or not DSBs are stored in-memory
Enable Automatic In-Memory management
create stored outlines for DML statements
reuse the frame segments

DESCRIPTION
--------------------------------------------------------------------------------
RDBMS's LDAP access option
OID usage parameter
retrieve roles from the operating system
RDBMS's Distinguished Name
allow non-secure remote clients to use auto-logon accounts
allow non-secure remote clients to use os roles
case sensitive password enabled for logon
password file usage parameter
maximum number of named users that can be created in the database
enable sys auditing
Enable use of crypographic libraries in FIPS mode, public

DESCRIPTION
--------------------------------------------------------------------------------
Facilitate one-step plugin for PDB with TDE encrypted data
external keystore credential location
Size of Unified audit SGA Queue
wallet root instance initialization parameter
Per-PDB configuration for Transparent Data Encryption
directory part of global database name stored with CREATE DATABASE
enforce that database links have same name as remote database
number of seconds a distributed transaction waits for a lock
Bias this node has toward not preparing in a two-phase commit
number of background global transaction processes to start
instance name supported by the instance

DESCRIPTION
--------------------------------------------------------------------------------
specifications of dispatchers
number of shared servers to start up
max number of shared servers
max number of dispatchers
max number of circuits
max number of shared server sessions
Use dedicated connection broker
connection brokers specification
local listener
forward listener
remote listener

DESCRIPTION
--------------------------------------------------------------------------------
listener registration networks
use more memory in order to get faster execution
Number of cursors to cache in a session.
remote-procedure-call dependencies mode parameter
utl_smtp server and port configuration parameter
PL/SQL version 2.x compatibility flag
PL/SQL compiler warnings settings
PL/SQL code-type
PL/SQL debug
PL/SQL optimize level
PL/SQL ccflags

DESCRIPTION
--------------------------------------------------------------------------------
plscope_settings controls the compile time collection, cross reference, and stor
age of PL/SQL source code identifier and SQL statement data

allow 9.2 or older wrap format in PL/SQL


Java VM JIT enabled
Restrict Java VM Access
maximum number of job queue slave processes
Make scheduler objects follow PDB TZ
minimum percent of threads required for parallel query
size of create bitmap buffer for bitmap index
maximum memory allow for BITMAP MERGE

DESCRIPTION
--------------------------------------------------------------------------------
cursor sharing mode
result cache operator usage mode
minimum parallel query servers per instance
maximum parallel query servers per instance
instance group to use for all parallel operations
message buffer size for parallel execution
size of in-memory hash work area
Private temporary table prefix
maximum amount of memory to be used by the cache
maximum result size as percent of cache size
maximum life time (min) for any result using a remote object

DESCRIPTION
--------------------------------------------------------------------------------
Windows event log for Unified Audit
Directory in which auditing files are to reside
Core Size for Shadow Processes
Core Size for Background Processes
Detached process dump directory
User process dump directory
Core dump directory
goldengate resource manager enabled
optimal size of the user session's object cache in bytes
percentage of maximum size over optimal of the user session's object cache
enable lob signature

DESCRIPTION
--------------------------------------------------------------------------------
maximum number of open files allowed per session
max # open links per session
max # open links per instance
transaction commit log write behaviour
transaction commit log wait behaviour
transaction commit log write behaviour
optimizer plan compatibility parameter
fixed SYSDATE value
enable system auditing
size of in-memory sort work area
size of in-memory sort work area retained between fetch calls

DESCRIPTION
--------------------------------------------------------------------------------
enable SQL processing offload to cells
enable SQL processing offload of encrypted data to cells
Additional cell offload parameters
Cell packet compaction strategy
Cell offload explain plan display
database name specified in CREATE DATABASE
Database Unique Name
max # cursors per session
include file in init.ora
enable SQL trace
prefix for auto-logon accounts

DESCRIPTION
--------------------------------------------------------------------------------
optimizer mode
require select privilege for searched update/delete
blank trimming semantics parameter
enable the use of star transformation
policy used to compute the degree of parallelism (MANUAL/LIMITED/AUTO/ADAPTIVE)
enable adaptive setting of degree for multiple user streams
number of parallel execution threads per CPU
optimizer index cost adjustment
optimizer percent index caching
allow rewrite of queries using materialized views if enabled
perform rewrite using materialized views with desired integrity

DESCRIPTION
--------------------------------------------------------------------------------
Target size for the aggregate PGA memory consumed by the instance
policy used to size SQL working areas (MANUAL/AUTO)
optimizer dynamic sampling
statistics level
Allowed destination for captured bind variables
skip unusable indexes if set to TRUE
enables the embedded hints to be ignored
optimizer secure view merging and predicate pushdown/movearound
timeout to restrict the time that ddls wait for dml lock
defer segment creation to first insert
Control whether to use optimizer pending statistics

DESCRIPTION
--------------------------------------------------------------------------------
automatic capture of SQL plan baselines for repeatable statements
use of SQL plan baselines for captured sql statements
threshold above which a plan is a candidate for parallelization (in seconds)
limit placed on degree of parallelism
force single instance execution
Usage of invisible indexes (TRUE/FALSE)
Enables/Disables internal conversions during DST upgrade
instance target in terms of number of parallel servers
controls maximum size of VARCHAR2, NVARCHAR2, and RAW types in SQL
use reporting-only mode for adaptive optimizations
controls all types of adaptive plans

DESCRIPTION
--------------------------------------------------------------------------------
optimizer in-memory columnar awareness
default for DDL cursor invalidation semantics
Replace exact aggregation with approximate aggregation
Replace count distinct with approx_count_distinct
Replace percentile_* with approx_percentile
controls all types of adaptive statistics
enables embedded parallel hints to be ignored
controls the minimum DOP computed by Auto DOP
TTC protocol error action
TTC protocol error continue action
maximum number of failed login attempts on a connection

DESCRIPTION
--------------------------------------------------------------------------------
whether the server retruns the complete version information
enable ddl logging
client result cache max size in bytes
client result cache maximum lag in milliseconds
Outbound DBLINK Protocols allowed
LDAP lookup for DBLINKS
Client Statistics Level
number of AQ Time Managers to start
enable automatic server DD updates in HS agent self-registration
are XML DB events enabled
start Data Guard broker (DMON process)

DESCRIPTION
--------------------------------------------------------------------------------
data guard broker configuration file #1
data guard broker configuration file #2
size of the olap page pool in bytes
disk set locations for discovery
preferred read failure groups
declares which manageability packs are enabled
Enable/Disable AWR automatic PDB flushing
maximum concurrent AWR PDB MMON slaves per instance
Setting for AWR Snapshot Time Offset
Category qualifier for applying hintsets
Setting for Autotask Maximum Maintenance PDBs

DESCRIPTION
--------------------------------------------------------------------------------
Enable/Disable Automated Maintenance for Non-Root PDB
enable spatial vector acceleration
diagnostic base directory
trace file custom identifier
Maximum size (in bytes) of dump file
enable in memory tracing
Set the offload group name
Enable Pluggable Database
pluggable database OS credential to bind
PDB file name convert patterns and strings for create cdb/pdb
Non-CDB Compatible

DESCRIPTION
--------------------------------------------------------------------------------
Enforce restriction on a prefix of a Common User/Role/Profile name
Parameter is a hint to adjust certain attributes of the CDB
max number of pdbs allowed in CDB or Application ROOT
if TRUE startup in CDB Cluster mode
CDB Cluster name
standby source file directory location
database link to standby source files
default remote database recovery file location for refresh/relocate
Disable features
Parallel degree for a CONTAINERS() query
Default sharing clause

DESCRIPTION
--------------------------------------------------------------------------------
pluggable database lockdown profile
PDB template
duplicated table refresh rate (in seconds)
consistency setting for multishard queries
enable partial results for multishard queries

443 lignes sÚlectionnÚes.

SQL>
SQL>
SQL> desc dba_tablespaces
Nom NULL ? Type
----------------------------------------- -------- ----------------------------
TABLESPACE_NAME NOT NULL VARCHAR2(30)
BLOCK_SIZE NOT NULL NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NOT NULL NUMBER
MAX_EXTENTS NUMBER
MAX_SIZE NUMBER
PCT_INCREASE NUMBER
MIN_EXTLEN NUMBER
STATUS VARCHAR2(9)
CONTENTS VARCHAR2(21)
LOGGING VARCHAR2(9)
FORCE_LOGGING VARCHAR2(3)
EXTENT_MANAGEMENT VARCHAR2(10)
ALLOCATION_TYPE VARCHAR2(9)
PLUGGED_IN VARCHAR2(3)
SEGMENT_SPACE_MANAGEMENT VARCHAR2(6)
DEF_TAB_COMPRESSION VARCHAR2(8)
RETENTION VARCHAR2(11)
BIGFILE VARCHAR2(3)
PREDICATE_EVALUATION VARCHAR2(7)
ENCRYPTED VARCHAR2(3)
COMPRESS_FOR VARCHAR2(30)
DEF_INMEMORY VARCHAR2(8)
DEF_INMEMORY_PRIORITY VARCHAR2(8)
DEF_INMEMORY_DISTRIBUTE VARCHAR2(15)
DEF_INMEMORY_COMPRESSION VARCHAR2(17)
DEF_INMEMORY_DUPLICATE VARCHAR2(13)
SHARED VARCHAR2(13)
DEF_INDEX_COMPRESSION VARCHAR2(8)
INDEX_COMPRESS_FOR VARCHAR2(13)
DEF_CELLMEMORY VARCHAR2(14)
DEF_INMEMORY_SERVICE VARCHAR2(12)
DEF_INMEMORY_SERVICE_NAME VARCHAR2(1000)
LOST_WRITE_PROTECT VARCHAR2(7)
CHUNK_TABLESPACE VARCHAR2(1)

SQL> select status from dba_tablespaces;

STATUS
---------
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE

SQL> select contents from dba_tablespaces;

CONTENTS
---------------------
PERMANENT
PERMANENT
UNDO
TEMPORARY
PERMANENT

SQL> select tablespace_name, contents from dba_tablespaces;

TABLESPACE_NAME CONTENTS
------------------------------ ---------------------
SYSTEM PERMANENT
SYSAUX PERMANENT
UNDOTBS1 UNDO
TEMP TEMPORARY
USERS PERMANENT

SQL> create tablespace S1 datafile 'c:\data\f1.dbf' size 50m;

Tablespace crÚÚ.

SQL> select tablespace_name, contents from dba_tablespaces;

TABLESPACE_NAME CONTENTS
------------------------------ ---------------------
SYSTEM PERMANENT
SYSAUX PERMANENT
UNDOTBS1 UNDO
TEMP TEMPORARY
USERS PERMANENT
S1 PERMANENT

6 lignes sÚlectionnÚes.

SQL> create tablespace S2 datafile 'c:\data\f2.dbf' size 10m;

Tablespace crÚÚ.

SQL> create tablespace S3 datafile 'c:\data\f3.dbf' size 10m;

Tablespace crÚÚ.

SQL> select tablespace_name, contents from dba_tablespaces;

TABLESPACE_NAME CONTENTS
------------------------------ ---------------------
SYSTEM PERMANENT
SYSAUX PERMANENT
UNDOTBS1 UNDO
TEMP TEMPORARY
USERS PERMANENT
S1 PERMANENT
S2 PERMANENT
S3 PERMANENT

8 lignes sÚlectionnÚes.

SQL> alter tablespace S3 read only;

Tablespace modifiÚ.

SQL> select tablespace_name, contents from dba_tablespaces;

TABLESPACE_NAME CONTENTS
------------------------------ ---------------------
SYSTEM PERMANENT
SYSAUX PERMANENT
UNDOTBS1 UNDO
TEMP TEMPORARY
USERS PERMANENT
S1 PERMANENT
S2 PERMANENT
S3 PERMANENT

8 lignes sÚlectionnÚes.

SQL> select tablespace_name, status, contents from dba_tablespaces;

TABLESPACE_NAME STATUS CONTENTS


------------------------------ --------- ---------------------
SYSTEM ONLINE PERMANENT
SYSAUX ONLINE PERMANENT
UNDOTBS1 ONLINE UNDO
TEMP ONLINE TEMPORARY
USERS ONLINE PERMANENT
S1 ONLINE PERMANENT
S2 ONLINE PERMANENT
S3 READ ONLY PERMANENT
8 lignes sÚlectionnÚes.

SQL> desc dba_datafiles


ERROR:
ORA-04043: objet dba_datafiles inexistant

SQL> desc dba_data_files


Nom NULL ? Type
----------------------------------------- -------- ----------------------------
FILE_NAME VARCHAR2(513)
FILE_ID NUMBER
TABLESPACE_NAME VARCHAR2(30)
BYTES NUMBER
BLOCKS NUMBER
STATUS VARCHAR2(9)
RELATIVE_FNO NUMBER
AUTOEXTENSIBLE VARCHAR2(3)
MAXBYTES NUMBER
MAXBLOCKS NUMBER
INCREMENT_BY NUMBER
USER_BYTES NUMBER
USER_BLOCKS NUMBER
ONLINE_STATUS VARCHAR2(7)
LOST_WRITE_PROTECT VARCHAR2(7)

SQL> select file_name, tablespace_name, bytes from dba_data_files;

FILE_NAME
--------------------------------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------ ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF
SYSTEM 943718400

C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF
SYSAUX 566231040

C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF
UNDOTBS1 68157440

FILE_NAME
--------------------------------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------ ----------
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF
USERS 5242880

C:\DATA\F1.DBF
S1 52428800

C:\DATA\F2.DBF
S2 10485760

FILE_NAME
--------------------------------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------ ----------
C:\DATA\F3.DBF
S3 10485760

7 lignes sÚlectionnÚes.

SQL> alter column file_name format a55;


alter column file_name format a55
*
ERREUR Ó la ligne 1 :
ORA-00940: commande ALTER non valide

SQL> column file_name format a55;


SQL> select file_name, tablespace_name, bytes from dba_data_files;

FILE_NAME
-------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------ ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF
SYSTEM 943718400

C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF
SYSAUX 566231040

C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF
UNDOTBS1 68157440

FILE_NAME
-------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------ ----------
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF
USERS 5242880

C:\DATA\F1.DBF
S1 52428800

C:\DATA\F2.DBF
S2 10485760

FILE_NAME
-------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------ ----------
C:\DATA\F3.DBF
S3 10485760

7 lignes sÚlectionnÚes.

SQL> column tablespace_name format a55;


SQL> select file_name, tablespace_name, bytes from dba_data_files;
FILE_NAME
-------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------------------------------- ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF
SYSTEM 943718400

C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF
SYSAUX 566231040

C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF
UNDOTBS1 68157440

FILE_NAME
-------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------------------------------- ----------
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF
USERS 5242880

C:\DATA\F1.DBF
S1 52428800

C:\DATA\F2.DBF
S2 10485760

FILE_NAME
-------------------------------------------------------
TABLESPACE_NAME BYTES
------------------------------------------------------- ----------
C:\DATA\F3.DBF
S3 10485760

7 lignes sÚlectionnÚes.

SQL> column tablespace_name format a10;


SQL> select file_name, tablespace_name, bytes from dba_data_files;

FILE_NAME TABLESPACE BYTES


------------------------------------------------------- ---------- ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF SYSTEM 943718400
C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF SYSAUX 566231040
C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1 68157440
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF USERS 5242880
C:\DATA\F1.DBF S1 52428800
C:\DATA\F2.DBF S2 10485760
C:\DATA\F3.DBF S3 10485760

7 lignes sÚlectionnÚes.

SQL> alter database 'C:\DATA\F2.DBF' resize 15m;


alter database 'C:\DATA\F2.DBF' resize 15m
*
ERREUR Ó la ligne 1 :
ORA-02231: option absente ou non valide pour ALTER DATABASE
SQL> alter database datafile 'C:\DATA\F2.DBF' resize 15m;

Base de donnÚes modifiÚe.

SQL> select file_name, tablespace_name, bytes from dba_data_files;

FILE_NAME TABLESPACE BYTES


------------------------------------------------------- ---------- ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF SYSTEM 943718400
C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF SYSAUX 566231040
C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1 68157440
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF USERS 5242880
C:\DATA\F1.DBF S1 52428800
C:\DATA\F2.DBF S2 15728640
C:\DATA\F3.DBF S3 10485760

7 lignes sÚlectionnÚes.

SQL> alter tablespace S2 add datafile 'C:\DATA\F4.DBF' size 15m;

Tablespace modifiÚ.

SQL> select file_name, tablespace_name, bytes from dba_data_files;

FILE_NAME TABLESPACE BYTES


------------------------------------------------------- ---------- ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF SYSTEM 943718400
C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF SYSAUX 566231040
C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1 68157440
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF USERS 5242880
C:\DATA\F1.DBF S1 52428800
C:\DATA\F2.DBF S2 15728640
C:\DATA\F4.DBF S2 15728640
C:\DATA\F3.DBF S3 10485760

8 lignes sÚlectionnÚes.

SQL> create table formation (titre varchar2(20)) tablespace S3;


create table formation (titre varchar2(20)) tablespace S3
*
ERREUR Ó la ligne 1 :
ORA-01647: tablespace 'S3' en lecture seule ; impossible de lui affecter de
l'espace

SQL> alter tablespace S3 online;

Tablespace modifiÚ.

SQL> create table formation (titre varchar2(20)) tablespace S3;


create table formation (titre varchar2(20)) tablespace S3
*
ERREUR Ó la ligne 1 :
ORA-01647: tablespace 'S3' en lecture seule ; impossible de lui affecter de
l'espace

SQL> alter tablespace S3 read write;


Tablespace modifiÚ.

SQL> create table formation (titre varchar2(20)) tablespace S3;

Table crÚÚe.

SQL> insert into formation values('php');

1 ligne crÚÚe.

SQL> insert into formation values('html');

1 ligne crÚÚe.

SQL> select * from formation;

TITRE
--------------------
php
html

SQL> alter tablespace S3 offline;

Tablespace modifiÚ.

SQL> select * from formation;


select * from formation
*
ERREUR Ó la ligne 1 :
ORA-00376: fichier 15 ne peut Ûtre lu Ó cette heure
ORA-01110: fichier de donnÚes 15 : 'C:\DATA\F3.DBF'

SQL> alter tablespace S3 online;

Tablespace modifiÚ.

SQL> select * from formation;

TITRE
--------------------
php
html

SQL> drop tablespace S1;

Tablespace supprimÚ.

SQL> select file_name, tablespace_name, bytes from dba_data_files;

FILE_NAME TABLESPACE BYTES


------------------------------------------------------- ---------- ----------
C:\APP\ADMIN\ORADATA\ORCL\SYSTEM01.DBF SYSTEM 943718400
C:\APP\ADMIN\ORADATA\ORCL\SYSAUX01.DBF SYSAUX 566231040
C:\APP\ADMIN\ORADATA\ORCL\UNDOTBS01.DBF UNDOTBS1 68157440
C:\APP\ADMIN\ORADATA\ORCL\USERS01.DBF USERS 5242880
C:\DATA\F2.DBF S2 15728640
C:\DATA\F4.DBF S2 15728640
C:\DATA\F3.DBF S3 10485760

7 lignes sÚlectionnÚes.

SQL> drop tablespace S2 including contents;

Tablespace supprimÚ.

SQL>
SQL>
SQL>
SQL>
SQL>
SQL>
SQL> drop tablespace S3 including contents and datafile;
drop tablespace S3 including contents and datafile
*
ERREUR Ó la ligne 1 :
ORA-00905: mot-clÚ absent

SQL> drop tablespace S3 including contents and datafiles;

Tablespace supprimÚ.

SQL>

You might also like