Oracle 19c :: Failed to set ACL's for specified User - oracle

I'm trying to install a fresh new downloaded Oracle Database 19c on my Windows 10 Home and I receive the error: Failed to set ACL's for specified User.
In the logs details I see mentioned updating registry key HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraDB19Home1 I don't see nothing unusual there.
I followed this guide and I:
run net share
run net use \\localhost\c$
I Stop and Disabled and the service OracleRemExecServiceV2
I also run with PowerShell as Administrator the command setup.exe -ignorePrereq -J"-Doracle.install.db.validate.supportedOSCheck=false"
Of course I have also created a brand new user for Oracle with a brand new password. And I also tried the Windows user within the Administrator group
I went to regedit and on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System I created a new DWORD value LocalAccountTokenFilterPolicy set to 1
I disabled Windows Defender and the whole Firewall
Then I tried the Debug mode so run from an elevated prompt I run setup.exe -debug -ignorePrereq -J"-Doracle.install.db.validate.supportedOSCheck=false" and as result I got:
native operation failed with WSE-000053: Windows application programming interface (API) SetFileSecurityW failed.
and
O/S-Error: (OS 123) The filename, directory name, or volume label syntax is incorrect.
which makes absolutely no sense to me because it looks like a Windows error.
How it can be so hard to install Oracle DB on a brand new machine with tons of CPU and RAM?
What ACL means and how to set it up?
Where am I wrong?

This is what makes your life miserable:
Oracle Database 19c on my Windows 10 Home
Oracle isn't/wasn't/won't (as far as I can tell) be supported on any MS Windows Home edition. True, some people made it work, but that's more matter of luck. You should upgrade operating system.
Or, maybe a better option, download one of Pre-Built Developer VMs (for Oracle VM VirtualBox).

Installation guide
says
Oracle Database for Windows x64 is supported on the following
operating system versions: Windows 10 x64 - Pro, Enterprise, and
Education editions
Oracle 19c is not supported on Windows 10 Home edition.
If you really want to have Oracle 19c on Windows, try to create a virtual machine with a supported Windows Server evaluation version. Or try to install Oracle 18 XE.

Related

Need help installing ODAC 122011x64 so I can connect ADW to Power BI

So I have successfully installed Oracle DB 19c and connected it to Oracle SQL Developer. I am able to create tables and run queries. Furthermore, I can connect to ADW with both python and SQL Developer and any changes that I commit are seen in all locations. I am trying to connect the ADW database to Power BI. I am running all this on a personal Windows 10 Pro laptop with plenty of SSD & RAM.
In a new window of Power BI I click Get Data and then Oracle Database followed by Connect. When I do this I get a pop up that says:
The recommended provider ('Oracle.DataAccess.Client') is not installed. You can continue with your current provider, however it has been deprecated and may not work correctly.
I clock OK. Enter my Server as the TNS Name that I have used for my python and SQL Developer instances. In my ADW database, I have a table called TEST. It's a simple table with 1 column with the years 2015 through 2020 in it. Been using this to test to see if things are working. So I click on the DirectQuery and run the SQL statement SELECT * FROM TEST under the Advanced options menu and select OK. A sign in window pops up and I select the Database table and enter my correct ADW username and password. The same one that I can use to access this table from SQL Developer and then select Connect. When I do, I get this error:
Details: "The provider being used is deprecated: 'System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.'. Please visit https://go.microsoft.com/fwlink/p/?LinkID=272376 to install the official provider."
So I go to the website and download the ODAC122011_x64 file from Oracle and unzip it. When I double click the setup.exe file inside the directory I get a yes/no user control account menu and I select yes and then a command prompt window flashes very quickly and then nothing happens. I ran a super slow motion capture from my phone to capture what the command window showed and below is what I see:
Starting Oracle Universal Starter...
Checking monitor: must be configured to display at least 256 color Higher than 256 . Actual 4294967290 Passed
Preparing to launch Oracle Universal Installer from C:\Users\<my username>\AppData\Local\Temp\OraInstall2020 09:20_09-04 {???}
Please wait .._
It does nothing after this I have tried running the oui.exe file under the install subdirectory and get nothing and I have tried running the install.exe file in Oracle Universal Installer that I acquired when installing Oracle DB 19c and I get the following error when I target the install.exe file for installation:
OUI-10118:C/Users/{my username}/Downloads/ODAC122011_x64/Setup.exe is either a directory or a corrupt file. Specify a valid filename.
This is a file that I just directly downloaded from Oracle's website and unzipped to a directory with no spaces in the directory location. I have the latest version of Java installed (JDK 15).
I am not sure the proper work around here. Why can't I get my Power BI to connect to my Oracle ADW table using the methods described in this article. Those are the instructions that I used. It appears that I need this ODAC application but I don't understand why it won't install.
Can anyone help me resolve this issue? Thanks!
Edit: I am using 64-bit on each application.
Update: Still having issues. I checked the log and this is what I am seeing:
Using paramFile:
C:\Oracle\Oracle_PowerBI_ODAC\ODAC122011_x64\install\oraparam.ini
Checking monitor: must be configured to display at least 256 colors. Actual 4294967296 Passed
The number of files bootstrapped for the jre is 0.
The number of files bootstrapped for the oui is 0.
the client version need not match the server version, Removing all other versions, and making sure that I had the x64 version,
You need the latest ODP.net library to use Oracle. Please download it here:http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html
I figured out the solution after reviewing this post. Apparently having over 2TB of free space on a hard drive causes this problem. You have to go into command prompt and create a temporary file to get your free space under 2TBs using something like this:
fsutil file createnew temp_1TB_file 1200000000000
Run the setup.exe again and then delete the temp file after.
Update: After doing all this I still was running into the same issues in Power BI. Then I read the troubleshooting notes from this page more closely and realized that I might have found the problem when it said:
If you downloaded Power BI Desktop from the Microsoft Store, you might be unable to connect to Oracle databases because of an Oracle driver issue.
I uninstalled the PowerBI Desktop that I had installed from Microsoft Store and installed it from the download from its website and tried connecting to Oracle ADW again through PowerBI and IT WORKED!!! So much troubleshooting but it finally works!

Oracle 11g 32/64-bit | Bad Installation?

everyone. If you don't want to read through it all, the question I have is: What would cause the Oracle 11g Client Installer to not install all of the registry keys properly? I'm not sure how specific this is to my environment, so I'll try to be as specific as I can and this first paragraph may not be relevant. If it's not, I apologize.
I'm installing the Administrative deployment of the Oracle 11g Client Installer, and after installing all of the 32/64-bit ODBC Drivers, testing the credentials, SunGard EAS 11.5, etc... I receive an error from EAS 11.5 telling me...
Lucky for me, that's me! The problem is that other people are already in EAS so obviously it's not a server failure, which, since every machine is Windows 10 r14393 64-bit, leads me to the only difference between the environments: The Registry.
During the installation, I change the REG_SZ insta_loc in HKLM\Software\Oracle\ from C:\Program Files\Oracle\Inventory to C:\Program Files (x86)\Oracle\Inventory so it installs correctly. In a good install, the following registry keys appear:
Lately, only the following keys have been appearing, when installed from either my Network (Admin) Account, or the local Administrator, over the network or locally from the HDD:
Can anyone help me figure out (or answer) why the Oracle Installer(s) would only install certain registry keys? I feel like the only thing that would interfere with an install is permissions, but I've tried the same two Admin accounts I've previously and successfully installed this on to no avail. Thanks!
I recreated one of the computers in a different group policy and the install worked. The original group policy I had them in was set to automatically install certain .MSI files, and I believe those files wrote to directories with the SYSTEM account instead of using User privileges which disallowed me from writing to the directories and creating the necessary keys.

Installing Oracle Instant Client

I can't seem to figure out how to install the Oracle client on Windows Server 2008.
I downloaded x64 version (the first file on the list) here. There are installation instructions on the bottom of that page:
Step 2 ("instantclient")
Which executable should I run?
The instantclient works only by defining the folder in the windows PATH environment variable. But you can "install" manually to create some keys in the Windows registry. How?
1) Download instantclient (http://www.oracle.com/technetwork/topics/winsoft-085727.html)
2) Unzip the ZIP file (eg c:\oracle\instantclient).
3) Include the above path in the PATH.
4) Create the registry key:
Windows 32bit: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE]
Windows 64bit: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE]
5) In the above registry key, create a sub-key starts with "KEY_" followed by the name of the installation you want:
Windows 32bit: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_INSTANTCLIENT]
Windows 64bit: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_INSTANTCLIENT]
6) Now create at least three string values ​​in the above key:
NLS_LANG = BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252 (complete list here: http://docs.oracle.com/cd/B19306_01/install.102/b14317/gblsupp.htm)
ORACLE_HOME = c:\oracle\instantclient (the same folder in PATH)
ORACLE_HOME_NAME = MY_INSTANTCLIENT (choose any name)
For those who use Quest SQL Navigator or Quest Toad for Oracle will see that it works. Displays the message "Home is valid.":
The registry keys are now displayed for selecting the oracle client:
I was able to setup Oracle Instant Client (Basic) 11g2 and Oracle ODBC (32bit) drivers on my 32bit Windows 7 PC. Note: you'll need a 'tnsnames.ora' file because it doesn't come with one. You can Google examples and copy/paste into a text file, change the parameters for your environment.
Setting up Oracle Instant Client-Basic 11g2 (Win7 32-bit)
(I think there's another step or two if your using 64-bit)
Oracle Instant Client
Unzip Oracle Instant Client - Basic
Put contents in folder like "C:\instantclient"
Edit PATH evironment variable, add path to Instant Client folder to the Variable Value.
Add new Variable called "TNS_ADMIN" point to same folder as Instant Client.
I had to create a "tnsnames.ora" file because it doesn't come with one. Put it in same folder as the client.
reboot or use Task Manager to kill "explorer.exe" and restart it to refresh the PATH environment variables.
ODBC Drivers
Unzip ODBC drivers
Copy all files into same folder as client "C:\instantclient"
Use command prompt to run "odbc_install.exe" (should say it was successful)
Note: The "un-documented" things that were hanging me up where...
- All files (Client and Drivers) needed to be in the same folder (nothing in sub-folders).
- Running the ODBC driver from the command prompt will allow you to see if it installs successfully. Double-clicking the installer just flashed a box on the screen, no idea it was failing because no error dialog.
After you've done this you should be able to setup a new DSN Data Source using the Oracle ODBC driver.
-Hope this helps someone else.
The directions state:
Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.
Unzip the packages into a single directory such as "instantclient".
Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.
Start your application and enjoy.
Suggest extracting/unzipping into a new directory. They've suggested instantclient, but you can name the directory anything you like. Name it C:\OracleInstantClient\ if you choose.
Then in Step 3, open a Windows Command Prompt. Type:
PATH C:\OracleInstantClient; %PATH%`
That's all there is to it!
If you want to use SQL Server Management Studio, you want to install the full Oracle client, not the Instant Client. The full Oracle client is on the same download page as the Oracle database. Assuming that you are installing on a 64-bit version of Windows, I expect you want the "Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64)" download. This is several hundred MB rather than a couple of MB for the Instant Client.
Try SQLDeveloper - there is a migration workbench there
http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html

Effects of changing NLS_LANG setting in the registry for Oracle Client

We are in the process of moving from the .NET Microsoft oracle driver to the ODP.NET driver.
One of the problems we have had is this error:
ORA-12705: Cannot access NLS data files or invalid environment specified
We were able to stop the error by modifying the registry and changing the setting (see this question)
In our case we changed
HKEY_LOCAL_MACHINE - SOFTWARE - ORACLE - NLS_LANG
which was set to NA
to be the same as
HKEY_LOCAL_MACHINE - SOFTWARE - ORACLE - HOME0 - NLS_LANG
which was set correctly
My question is why would there be different NLS_LANG settings in the registry, and might there be any knock on effects of changing this value?
Update:
I've just found in the Oracle NLS FAQ the following
For Oracle version 7:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
For Oracle Database versions 8, 8i and
9i:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEx\
where "x" is the unique number
identifying the Oracle home.
HOME0 is the first installation
For Oracle Database 10g:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_<oracle_home_name>
There you have an entry with name
NLS_LANG
OK, so there are different registry settings for different versions...
Note:
Some people are confused by finding a
NLS_LANG set to "NA" in
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
when no version 7 was installed. This
is used for backwards compatibility,
and can be ignored.
I have Oracle 9i, so now I'm even more confused - why is the ODP.NET dll looking at the Oracle 7 registry setting?
I had a similar problem with the;
ORA-12705: Cannot access NLS data files or invalid environment specified
The ODP.NET dll's or instant client were reading the registry;
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\NLS_LANG=NA
The value NA caused the error.
This was because I already had a client installation but I wanted to use the oracle instant client via network drive for the a VB.NET app with ODP.NET.
My simple fix in my vb.net solution was for example to adjust the environment for the application via:
Environment.SetEnvironmentVariable("NLS_LANG",
"AMERICAN_AMERICA.WE8MSWIN1252",
EnvironmentVariableTarget.Process)
nb. The Oracle "NLS FAQ" link is no longer valid (2012)
PER Oracle Notes on the 11g ODP release, the following can cause this error:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\NLS_LANG=NA <--- This NA does in fact cause this error if set to NA.
You can try DELETING the key if not needed or setting it to a valid NLS_LANG setting for your locale.
For us we set it to AMERICAN_AMERICA.WE8MSWIN1252.
In our case we did not want to make any potentially breaking changes to the Oracle registry because we were installing our web service on a production Oracle 9i server.
The solution was simply to prevent ODAC from being able to see any ORACLE registry keys by denying all access to that key for the user ID our web service was running as.
Start -> Run... regedit (as an administrator)
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
Right click on the ORACLE key -> Permissions...
Click the Add... button.
Add the web service user name configured in your web service's application pool identity (e.g. IUSR_MyWebService); this is the user name that appears against your w3wp.exe process in Task Manager.
Press OK.
For the new user permissions, check "Deny" against the Full Control permission and press OK.
This worked just fine and as a bonus we have ensured that our application is isolated from any future changes to the ORACLE registry keys.
Tip: you can prove to yourself that the user in question has no access to the keys in question by closing any running instances of the Registry Editor, start a CMD prompt as that user (using Run As...) and then launching regedit from the command prompt.
the Oracle Client (ORACLE_HOME\bin\ora*.dll) is looking for a file named "oracle.key" in the same directory. This file contains the name of the registry key which belongs to this Oracle client installation. (e.g. "Software\ORACLE\HOME3")
hth
Andreas
This was all resolved in the end by installing the ODAC 11 client components (downloaded from the Oracle website). I think the system was getting confused because we had copied the ODAC dlls across rather than fully installing the client. ODP.NET is expecting an Oracle 11 client and didn't know where to find the Oracle Home.
NB if you are installing the ODAC components using xCopy deployment then do not install them to an existing Oracle Home directory (eg c:\oracle\ora92 for 9i client). This causes a 'Provider is not compatible with the version of Oracle Client’ error.

Getting Oracle client to work on Windows 7 RC

Has anyone had any luck in getting an Oracle client to install and work with Windows 7 RC? I went and upgraded from Vista to Windows 7 but having terrible problems getting my Oracle databases to work...
Phew I eventually worked it out. I downloaded the Oracle Instant Client x86 and copied that and setup up my environment variables (PATH, LD_LIBRARY, TNS_ADMIN). The problem I had before was that I downloaded the x64 version which won't work with Toad which is an x86 app! As soon as I installed the x86 version the problem was solved....
I ran into similar issues.
After downloading the Oracle 10g client for Vista (10203_vista_w2k8_x86_production_client.zip) from the Oracle web site, I unzipped the files, right-clicked on setup.exe, and selected Run As Administrator.
Within the Oracle Universal Installer, I selected Administrator, clicked the Next button, and then selected the Oracle home name and path and clicked the Next button.
As mentioned in other answers, the installer failed on the next screen, "Product-Specific Prequisite Checks". The specific failure was "Checking operating system requirements..." in the third column, there is a check box (which was not checked). I clicked in the check box and the installer changed the status to "Not executed". When I clicked the Next button, it warned me that the install may fail. I clicked Okay. I was able to install without further issue.
It is not intuitive and the Oracle 11g client may be different, but this worked for me.
-Weston
I had the same issue. What I did to solve this problem was:
- right click on the setup
- choose Troubleshoot Compatibility
- it will popup a window "Test Compatibility settings for the program". It tells me which version is it compatible with and Windows 7 will activate that setting for you. In my case was Windows XP service pack 2 is the setting used to install this Oracle 10g client
- click on the button "Start the program" it will run the installer
- done
It Worked with me, I had to do the following: (all after installing oracle in either compatibility mode or skipping the OS check results)
1- Set up the %Oracle_Home% in the environment variables.
2- Configured "tnsnames.ora, listener.ora and sqlnet.ora" to make sure they match
3- Replaced a malfunctioning DLL for sql*plus (I found the original one in the setup's temp file, just by using search from windows)
4- Logged into sqlplus from command line (sys /as dba) and created a user with high privileges (cuz you can't build a repository with "system" or "sys"
5- Used this new user to create the repository from the RAU (Repository Administration Utility), and here you go!
Read here: http://forums.oracle.com/forums/thread.jspa?messageID=3454893&#3454893

Resources