Run Oracle SQL script and exit from sqlplus.exe via command prompt
Another way is to use this command in the batch file: echo exit | sqlplus user/pass@connect @scriptname
Another way is to use this command in the batch file: echo exit | sqlplus user/pass@connect @scriptname
You can think of a MySQL “database” as a schema/user in Oracle. If you have the privileges, you can query the DBA_USERS view to see the list of schemas:
You’re missing service name: EDIT If you can connect to the database from other computer try running there: and
I had this issue and the fix was to make sure in tnsnames.ora the SERVICE_NAME is a valid service name in your database. To find out valid service names, you can use the following query in oracle: Once I updated tnsnames.ora to: then I ran: Success! The listener is basically telling you that whatever service_name … Read more