New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there an official Oracle Database on Windows Container image? #494
Comments
There is not, but you should be able to build one based out of the files we have here. Want to give it a try? |
@sebagomez @brunoborges would be good to have an official Windows server core image, but I'm happy to give it ago |
I'll try to work on that too. |
is there an official installer for windows other than the setup.exe or an installer which can be controlled via a script so not to require user interface or user input ? |
Yes, you can use response files to perform a silent install. Have a look at Installing and Configuring Oracle Database Using Response Files for more information. The response file should in many ways be the same as the Linux based version. |
@gvenzl thanks I've forked this repo and will create a version with a Windows Server Core OracleDatabase docker build; once I'm happy I'll then submit a pull request for a review. |
I would like to install the oracle odbc driver from winnt_12c_client32 in a windows docker image - but the silent installation doesn't work in a windowsservercore image with no further output. In my opinion the installation isn't silent enough, still wants to open a window or something. Any ideas? |
@mawl I came across an issue with the install when I hadn't told windows to trust the download before extracting the .zip file :'( took 3days to find out; personally I've switched to using the Oracle Managed DataAccess Components for .NET to avoid client installation of drivers etc. that use the system registry & GAC I realise this response is .net related but hope the info helps |
I also tried to install the Oracle Client 12c on the windows server core container image. Looks setup.exe completed without doing any actions. No logs or no errors on the console. Is Anyone tried ?. |
Same here |
Guys, please open a new issue for this,. |
I have been struggling with this for a couple of days Oracle setup installer and response files ready, I run the setup command with my response file on my own PC from an elevated cmd window and Oracle is installed, no problems found and oracledb installs according to my reponsefile CMD command But even with silent switch the Oracle Universal Installer window and some configuration still popup, that will not work when installing from an image or within a container itself When try to replicate using my dockerfile or an error or nothing happens Docker file #Indicates that the windowsservercore image will be used as the base image. #Create the working folder #Copy Oracle installers and response file to the working directory previously created #Run the command Once ready I run on an elevated powershell Window PS D:\docker\dockerfiles> docker image build -t 2016oracle -f dockerfile . As I said even that the build might finish successfully and without errors the application it is not installed or the container run for a moment and then exits few seconds later The only problem as far as I can see is get rid of the Oracle Universal Installer window popping up |
I gave up on this when i realized the java based installer was spawning numerous new windows during the silent install process. That, and it might be trying to perform some other operations which the container OS does not support. I think if you can run a linux container on windows on the same system, then using a linux based Oracle container might be a better path... but i'm not sure if there is full support / network connectivity between LCOW and windows containers... yet. But i could bet that there will be support for that before Oracle installs into a windows container. Or use AWS RDS to run Oracle (or the Azure equivalent) if possible... |
Hi dkorel-copperleaf, I managed to get rid of all the errors and popup windows when installing, less a permission error that forbids the app to be installed, practically is one thing after another For avoiding the popups the -noconsole switch positioned at the beginning of the arguments list sorted the issue RUN Start-Process -FilePath 'C:\temp\database\setup.exe' -argumentlist '-noConsole', '-silent', '-skipPrereqs', '-noconfig', '-responsefile c:\temp\database\response\db.rsp ' -wait Nevertheless still stuck with a different issue, inside of the container, when reviewing the install logs Full log file PS C:\Program Files\Oracle\Inventory\logs> Get-Content .\oraInstall2018-11-17_04-22-58AM.out
|
JuanPerezActivus, Nice work! I know the frustration with some of those roadblocks... I wonder if perhaps using a "state difference / snapshot" type tool (like an installer creator) to reverse engineer the installer?
I realize this process would not allow for variation / customization in the tablespaces... perhaps once the database engine has been installed, dbca could be run as an entrypoint script to create, once, the tablespaces... Just an idea... might work if dbca runs without interruption... |
hi guys, does anyone tryed this image?: |
no update on this? |
> no update on this? I tried this official guide and other approaches but not vail, could not make it work if you do please share your outcome Running Oracle Database and https://www.oracle.com/technetwork/topics/dotnet/tech-info/oow18windowscontainers-5212844.pdf |
Tried different approaches, always got install permissions issues which block the whole project |
I'm encountering the same error.
No one's come up with a solution? |
I ended up moving to WSL2 :( |
6 years later since this issue was created, and still no way to make a Windows container for Oracle client. I tried this guy's approach but it's giving a bunch of errors. This is incredible. |
I'm not an Oracle expert, but has anyone in this thread tried the Windows or Server images, rather than the Server Core one? The API surface on the Server Core image is limited, so I'd give it a try with the Server image. |
I've installed Oracle 19 on server 2019 and 2022 core using this instruction: |
Thanks for posting that discussion which points to this presentation: The key points are:
For what it is worth, SQL Server support for Windows Containers was suspended in 2021: |
@orest-gulman and @christianshay thank you both so much for this. I can confirm that I have the Oracle client running on a Windows Docker container. This is really great news. I used instantclient_18_5 as instantclient_18_3 is no longer available for download. https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html |
@Sublime1 I'd recommend updating to the latest 19c instant client because we continue to make Release Updates available for this LTS version, whereas 18 is already out of support. |
@cjbj Thanks for the tip. Is there any reason I shouldn't just go directly to the 21c instant client? |
@Sublime1 21c is an innovation release with a shorter lifespan than the long-term support release 19c. If you adopt 21c be prepared to move to the next, future Instant Client release sooner than if you use 19c. It's your choice. The decision is really between how you value long term environment stability and being able to use new features (some of which may need 21c DB). |
@cjbj Thanks again for the clarification. I hadn't been aware of the "innovation release" concept and had just assumed that 21c was the one to go for. That's very good to know. |
Hi @christianshay Also, you said to use "Oracle Database 19.7 or later", bit 19.3 is the latest version available to download from https://www.oracle.com/database/technologies/oracle19c-windows-downloads.html Was that a typo as you say 19.3 in your PDF? Right now I'm blocked on a very strange error where it seems to ignore the value of ORACLE_HOME that I set, and instead sets ORACLE_HOME to the value of ORACLE_BASE. Then it complains: [FATAL] [INS-32052] Oracle base and Oracle home locations are same. Would be grateful for any help and especially to see your response file and other scripts. Thanks in advance! |
This is mine, is also apply time zone patch and execute few .sql after installation:
|
@orest-gulman Thanks very much! This is orclcdb.bat, right? And what version of Oracle DB did you use? I would really love to see a working db.rsp file too, as clearly I've done something wrong with mine. Thanks again! |
@Sublime1 ver: 19.3 |
@orest-gulman That's very kind of you, many thanks again. |
The subject is my question... if it's not, is there a restriction why it couldn't be done?
The text was updated successfully, but these errors were encountered: