How to change SQL Server collation on an EC2 instance - amazon-ec2

I'm running SQL Server 2008R2 Web edition on and EC2 instance. I need to change the server's collation. However, since the installation files are not included in the image, I can't run the setup to rebild databases with the changed collation.
This is a must. Can't work with the default collation.
Any ideas?
Thanks in advance!
Amit.

Related

What is the difference between Azure SQL VM and Azure VM where we install SQL Server manually

Question 1 - what is the difference if i create a VM and install SQL Server on it by myself vs Azure SQL VM.
With respect to licensing, I will anyway use the hybrid licensing to make use of on-prem license.
Is there any significant different apart from that, MS installs the SQL server on C: but I can install it else where.
Currently when I check in portal, I see the server listed in Virtual machine and in SQL Virtual machine for both SQL VM and VM where SQL Server is installed manually.
When i browse over the SQL Virtual Machine section i do not see certain options enabled like Security, Patching, backups, Additional features etc., for the version VM where SQL Server is installed manually
Question 2 - SQL Server with Azure DB PaaS vs Managed SQL Server (comes on VM)
Here my understanding is SQL Server is completely managed by MS and we need not worry about anything. Just create SQL Server, add Azure DB paas to use them. Or am i missing something?
Thanks you!!!

Connect JDeveloper application to Oracle Live SQL

I am new to ADF/JDeveloper. I'd like to configure my ADF Web application to Oracle Live Server, since I'm using a Mac computer, which are not supported by Oracle's database distribution, I have tried to use Oracle VM but it freezes my Mac.
Needs information on database configuration panel are:
Host name
JDBBC port
SID
Oracle does not provide database connection information for the database behind livesql.oracle.com. If you want your own cloud database, you should look into setting up an Oracle Cloud Free Tier database. If you configure your database using the Always Free options, you should be able to have your database around for free forever.

SQL Plus: How do I specify a database or instance to connect to when multiple instances are installed

On Windows Server 2012 R2, I have Oracle 11G and Oracle 12C installed.
Everyting is working as needed, I am able to use SQL Developer to connect to individual instances.
However, in addition to using SQL Developer, I need to use SQL Plus.
How do I specify which Instance to connect to using commands?
In the TNS file, each instance is on a separate port and has a different SID but uses the same IP.
Thanks
you can always
connect user/password#server:port/SID|SERVICE

oracle 11g Personal Edition: Create Schema

This is a two-part question. I have installed an Oracle 11g Personal Edition Server on a Windows Server 2008 VM. During the installation I chose the option to install a database as well (sample/blank database?).
Now, on the VM, I can launch the Oracle Enterprise Manager Console at localhost port 1158, login as either SYSMAN or SYSTEM and in that I can see: 'Database Instance': orcl.127.55.199 . I can also see 'OracleOraDb11g_home1TNSListener' in the Services control panel in running state.
1) I need to be able to create a new Schema in the default database. How do I do that using the Oracle Enterprise Manager or anything else?
2) How can connect to that schema from another computer, say a Windows 7 workstation? I am able to see the VM running the Oracle server and I am even able to make a connection but I get an error like '12541 no listener'. I am pretty sure I have the Oracle client software installed. Do I need to create a TNS file? I am using Direct Connection.
Thanks!
Never mind:
I got this all to work. Here are some brief notes:
1) Used Oracle Database Configuration Assistant (ODCA) to create a database
2) Used Oracle NET Manager to Create a Listener
3) Restarted Oracle Listener Service
4) Used Oracle Enterprise Manager in localhost environment to create Users--which seem to be the same as Schema--thanks #Leo for your input in the Comments!
Everything works now!
Hope this helps someone.

Getting ORA-12560 with Oracle Express 10g

I started to receive this error while I`m using C# with Oracle 10g.
ORA-12560 and I really need to solve it as I`m running out of time on my grad project.
ORA-12560 is a configuration issue. This makes it difficult to diagnose remotely. I have answered a similar question on SO before. my advice is general enough that it should help you too. Find out more.
If it doesn't you'll need to post more details of your listener.ora, tnsnames.ora and perhaps your hosts files.
edit
"All the files are hosted here:"
Hmmmm. Both listener.ora andtnsnames.ora reference HOST = SIKAS-TOSH but server is not included in the hosts file.
edit 2
"the Oracle 10g Express Edition is
installed on my PC"
If your database is on your PC then the files on some web-server are irrelevant. It is the listener.ora andtnsnames.ora on your PC which matter. Those versions of the file need to reference HOST = localhost or else your hosts needs to include SIKAS-TOSH as an alias for 127.0.0.1.
Make sure your listener is running. If it is, try restarting it and re-registering your database with it (through sqlplus as sysdba, type the command alter system register;). Also, make sure that if you run a local firewall you have allowed the port 1521 for incoming traffic (or your custom port if you have changed this).
In Windows the listener is a service, prefixed with the oracle home name + TNSListener.
In Linux, set your oracle home environment and type:
lsnrctl stop
lsnrctl start
I have unintalled and re-installed the oracle 10g many times as well as the ODAC112011beta, last time I didn`t install the ODAC112011beta, instead, I used the Oracle.DataAccess.Client file found in the C:\oraclexe\app\oracle\product\10.2.0\server\BIN\Oracle.DataAccess.dll ... then I started the service from START->All Programs->Oracle Database 10g Express Edition->Start Database as administrator ... now I can connect to the Oracle through C# ... I hope I face no more problems

Resources