Documentation ¶
Overview ¶
Package consts provides common Oracle constants across the entire Data Plane.
Index ¶
Constants ¶
View Source
const ( // DefaultHealthAgentPort is Health Agent's default port number. DefaultHealthAgentPort = 3201 // DefaultConfigAgentPort is Config Agent's default port number. DefaultConfigAgentPort = 3202 // DefaultDBDaemonPort is DB daemon's default port number. DefaultDBDaemonPort = 3203 // DefaultMonitoringAgentPort is the default port where the oracle exporter runs DefaultMonitoringAgentPort = 9161 // Localhost is a general localhost name. Localhost = "localhost" // DomainSocketFile is meant for the agents to communicate to the Database Daemon. DomainSocketFile = "/var/tmp/dbdaemon.sock" // ProxyDomainSocketFile is meant for the database daemon to communicate to the database daemon proxy. ProxyDomainSocketFile = "/var/tmp/dbdaemon_proxy.sock" // SecureListenerPort is a secure listener port number. SecureListenerPort = 6021 // SSLListenerPort is an SSL listener port number. SSLListenerPort = 3307 // OpenPluggableDatabaseSQL is used to open pluggable database (e.g. after CDB start). OpenPluggableDatabaseSQL = "alter pluggable database all open" // ListPDBsSQL lists pluggable databases excluding a root container. ListPDBsSQL = "select name from v$containers where name !='CDB$ROOT'" // ListPluggableDatabaseExcludeSeedSQL is used to list pluggable databases exclude PDB$SEED ListPluggableDatabaseExcludeSeedSQL = "select pdb_name from dba_pdbs where pdb_name!='PDB$SEED'" // GetDatabaseIncarnationSQL is used to get current database incarnation number. GetDatabaseIncarnationSQL = "select incarnation# from v$database_incarnation where status='CURRENT'" // DefaultPGAMB is the default size of the PGA which the CDBs are created. DefaultPGAMB = 1200 // DefaultSGAMB is the default size of the SGA which the CDBs are created. DefaultSGAMB = 1800 //Oracle18c Version for Oracle 18c XE Oracle18c = "18c" // SourceDatabaseHost is the hostname used during image build process. SourceDatabaseHost = "ol7-db12201-gi-cdb-docker-template-vm" // CharSet is the supported character set for Oracle databases. CharSet = "AL32UTF8" // SecurityUser is the user for lockdown triggers. SecurityUser = "gcsql$security" // PDBLoaderUser is the user for impdb/expdp operations by end users. PDBLoaderUser = "gcsql$pdbloader" // MonitoringAgentName is the container name for the monitoring agent. MonitoringAgentName = "oracle-monitoring" // DefaultExitErrorCode is default exit code DefaultExitErrorCode = 128 // ListMRPSql lists managed recovery processes. ListMRPSql = "select process, delay_mins from v$managed_standby where process like 'MRP%'" // CancelMRPSql cancels managed recovery processes. CancelMRPSql = "alter database recover managed standby database cancel" // ListPrimaryRoleSql lists if current database role is primary. ListPrimaryRoleSql = "select database_role from v$database where database_role='PRIMARY'" // ActivateStandbySql promotes standby database to primary. ActivateStandbySql = "alter database activate physical standby database" // ListOpenDatabaseSql lists if database is open. ListOpenDatabaseSql = "select instance_name, status from v$instance where status='OPEN'" // OpenDatabaseSql opens database. OpenDatabaseSql = "alter database open" )
Variables ¶
View Source
var ( // ProvisioningDoneFile is a flag name/location created at the end of provisioning. // this is placed on the PD storage so that on recreate, the bootstrap doesnt re-run. ProvisioningDoneFile = "/u02/app/oracle/provisioning_successful" // SeededImageFile indicates that a CDB exists in the image or one of the volumes mounted to it SeededImageFile = "/tmp/seeded_image" // UnseededImageFile indicates that a CDB does not exist in the image, nor in any volume mounted to it UnseededImageFile = "/tmp/unseeded_image" // SECURE is the name of the secure tns listener SECURE = "SECURE" // ListenerNames is the list of listeners ListenerNames = map[string]*Listener{ "SECURE": { LType: SECURE, Port: SecureListenerPort, Local: true, Protocol: "TCP", }, "SSL": { LType: "SSL", Port: SSLListenerPort, Protocol: "TCPS", }, } // DpdumpDir is the Impdp/Expdp directory and oracle directory name. // Linux is relative to the PDB PATH_PREFIX. DpdumpDir = OraDir{Linux: "dmp", Oracle: "PDB_DATA_PUMP_DIR"} // OraGroup is the group that owns the database software. OraGroup = []string{"dba", "oinstall"} // OraTab is the oratab file path. OraTab = "/etc/oratab" // OraUser is the owner of the database and database software. OraUser = "oracle" // OracleBase is the Oracle base path. OracleBase = "/u02/app/oracle" // DataDir is the directory where datafiles exists. DataDir = "/%s/app/oracle/oradata/%s" // PDBDataDir is the directory where PDB datafiles exists. PDBDataDir = DataDir + "/%s/data" // PDBSeedDir is the directory where the SEED datafiles exists. PDBSeedDir = DataDir + "/pdbseed" // PDBPathPrefix is the directory where PDB data directory exists. PDBPathPrefix = DataDir + "/%s" // ConfigBaseDir is where the DG config files are persisted. ConfigBaseDir = "/%s/app/oracle/oraconfig" // ConfigDir is where the spfile, pfile and pwd file are persisted. ConfigDir = "/%s/app/oracle/oraconfig/%s" // RecoveryAreaDir is where the flash recovery area will be. RecoveryAreaDir = "/%s/app/oracle/fast_recovery_area/%s" // DataMount is the PD mount where the data is persisted. DataMount = "u02" // LogMount is the PD mount where the logs are persisted. LogMount = "u03" // ListenerDir is the listener directory. ListenerDir = "/%s/app/oracle/oraconfig/network" // ScriptDir is where the scripts are located on the container image. ScriptDir = "/agents" // WalletDir is where the SSL Certs are stored. WalletDir = "/u02/app/oracle/wallet" // OracleDir is where the env file is located OracleDir = "/home/oracle" // DefaultRMANDir sets the default rman backup directory DefaultRMANDir = "/u03/app/oracle/rman" // RMANStagingDir sets the staging directory for rman backup to GCS. RMANStagingDir = "/u03/app/oracle/rmanstaging" // OracleTimestampToRFC3339Format defines the format used in Oracle to_char() to cast timestamp to RFC3339 format. OracleTimestampToRFC3339Format = `YYYY-MM-DD\"T\"HH24:MI:SS\"Z\"` )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.