Hello, we will need restore Oracle DB to another server every day. I created PS script, but I have a proble with one error code. User ct\OracleHome has admin permisson on target server and Oracle services run under this account. Manualy restore from a console works fine.
Not sure of course, but I think you need to supply credentials to login into oracle itself like for example sys (sysdba). So not OS credentials but Oracle authentication
Have you tried restoring via the GUI with the same credentials to see if that works
Hello, script is function. Problem was in account credential. Script is case sensitive and error was in account "ct\OracleHome" where must be "CT\OracleHome". It is a crazy, uffff.