AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
TNSLSNR for Linux: Version 18.0.0.0.0 - Production Starting /u01/app/oracle/product/18.0.0/dbhome_1/bin/tnslsnr: please wait. 'mypassword' pdb_name = 'soe' p_host_name = 'oracleprimary' sb_host_name = 'oraclestby' total_memory = 2048 container_oradata = '/u01/app/oracle/oradata' o_base = '/u01/app/oracle' r_area = f ' /sqlnet.ora', sb_container ) get_password ( 'docker', 'sys' ) # I'm just using keyring to hide my password but you can set it to a simple sting i.e. # The following parameters are specific to your install and almost certainly need to be changed image_name = 'cc75a47617' # Taken from the id value above host_oradata = '/Users/dgiles/Downloads/dockerdbs/oradataprimary' # The directory on the host where primary database will be persisted sb_host_oradata = '/Users/dgiles/Downloads/dockerdbs/oradatastby' # The direcotry on the host where the standby database will be persisted # The rest are fairly generic and can be changed if needed oracle_version = '18.0.0' db_name = 'ORCL' stby_name = 'ORCL_STBY' sys_password = keyring. After that we get a Docker client handle which enables use to call the API against our local Docker environment. The following code section imports the needed modules to setup up our Docker container to create the Oracle Database. It uses a mix of calls to the Docker Python API and Calls direct to the databases via cx_Oracle. It aims to build an Active Data Guard model with maximum performance but can be trivially changed to support any of the required models. This current version is build on top of Oracle's Internal GiaaS docker image but will be extended to support the public dockers images as well. The approach documented below is very much for someone who is interested in a high level of control over the various steps in the installation and configuration of the Oracle Database. If you are just wanting to get the Oracle Database running inside of Docker I strongly suggest that you use the docker files and guides in the Oracle Github repository. The reason I've done this rather than just take the default configuration is that this approach gives me a lot more control over the build and enables me to change specifc steps. These Python (3.6) scripts walk through the creation of a database and standby server. Create Oracle Database in a Docker Container ΒΆ
0 Comments
Read More
Leave a Reply. |