My DBA has create a stored procedure on the production instance of SQL Server 2008 R2 and granted me access to it to build a Web Forms UI.
utility.dbo.getPlanetInfo
However, once connected to the database, I don't see the stored procedure in the 'Stored Procedures' folder in the Server Explorer, thus I can't create my SQDataSource, since the stored procedure option within that wizard is greyed out.
What do I have to tell the DBA to do so that the stored procedure is available to me?
On the assumption that you really do have permission to access the proc, try doing it without using the server explorer - just drag a SQLDataSource onto the page and configure the connection through the smart tag?
Should give you a drop-down of the procs available to you and if you see none, I'd suggest going back to your DBA to check the connection and permissions. Also, try calling the proc from Management Studio - if you can't do that then you know you don't have permissions.
Related
I don't know how to describe the problems with the Oracle SQL developer program. I am new at this. The story is here;
I downloaded Oracle SQL Developer 22.2. And I started sqldeveloper.exe. Oracle SQL Developer is started but I am not doing anything in this program. Everything freezes. The Create database button is inactive. Press the... button and press .. but nothing changes.
My computer is a gaming computer and not old. The hardware is above the minimum requirements to install the program.
I tried resetting the windows factory settings...
I tried deleting and installing it.
I tried the old version of sqldevelepor.exe...
How can I solve this problem?
SQL Developer is a GUI tool we use to access (most usually) an Oracle database.
But, to do that, you need a database. According to what you said so far, there's none so - SQL Developer itself can't do much.
I'd suggest you to visit the same site (Oracle Technology Network, OTN) from which you downloaded SQL Developer, and this time download the database. Pick the Express Edition (XE) as it is easy to install and use. Along with the installation process, the setup will create the database for you (so you won't have to create it manually).
Then, once it is done, you should be able to use SQL Developer to connect to it. At first, you'll use SYSTEM or SYS users (pay attention to connect as SYSDBA in that case). Don't use these users for anything but administration purposes - create a new user (you can call it e.g. "berfin"), grant privileges to it (most usual are create session, create table, create view, create procedure) so that you could start working with it. In that schema (i.e. user) create your own tables, insert data, do whatever you planned to do).
I believe you should read some documentation first; OTN has it all. Start with the Concepts book, see short DBA (so that you'd be able to create your own user, etc.), have a look at SQL reference book (if you don't know SQL already). That should get you started. On the other hand, you could take shortcuts and check some YouTube videos/tutorials, ask here and there, Google for problems you meet but - in a long turn, if you really want to work with Oracle - read documentation.
tools --> preferences --> environment --> look and feel: windows (not oracle)
I am very inexperienced and without appropriate training so apologies if I don't phrase this right or include enough information.
I am attempting to connect a SQL server (Accessed typically via Microsoft SQL Server Management Studio) to a data warehouse via Oracle SQL Developer. But I just can't get SQL developer to recognise the JTDS drivers to enable the SQL Connection. I have downloaded multiple versions of the driver (Jtds1.2.2 and Jtds1.3.1) and I have used the Tools/Preferences/Database/Third Party JDBC drivers tab to specify their location. But I never get a SQL connection option in the connection dialogue. There are no error messages produced, it just never seems to do anything.
The goal of my efforts is to be able to directly access the data warehouse from our SQL server.
I have watched numerous videos showing this process working and I can't work out what is going wrong. The Oracle website suggests that these drivers can be installed via the Check for Updates function but this doesn't do anything when I have attempted it.
The solution was to Copy the drivers into the same parent directory as the SQL developer. Previously I had tried copying it inside one of the sub folders and tried copying it outside of the directory. But as soon as I put it in the main SQL developer folder it worked.
Thanks to thatjeffsmith
I'm using a legacy Firebird-database in my Visual Studio 2012-project. I installed the NETProvider and DDEXProvider. I want to use Entity Framework, but I am unable to see the tablenames, etc. I've tried to connect to the local database (database.fdb) and when I test the connection it succeeds. However, I get all the categories (tables, views, procedures, system tables, etc.), but when I try to open an item the items are not displayed.
I've installed Flamerobin and the database opens as expected.
As you can see in the image, I use the standard login SYSDBA - masterkey.
Hopefully you can solve this problem.
Many thanks in advance.
I have installed Oracle Database 11.2.0.1 Win64 and also Client 11.2.0.1 Win64 in my windows 7 Ultimate and I was able to access Oracle database using Sql*plus
using sqlplus / as sysdba. After that I installed ODP.NET ODTwithODAC1120320_32bit to work with Oracle using C# in Visual Studio 2010. When i tried to add connection to Oracle database using ODP it pops out ora-12560 :TNS: protocol adapter error and even during logging to Oracle using SqlPlus / as sysdba.
I have read several articles that say stopped service will cause but mine is running.
What could be the problem???
The main problem that I faced Connecting to Oracle 11g using Server explorer in VS 2010 was not version compatibility of ODP with Oracle database but it's architecture. After such errors I uninstalled Oracle Database 11g using deinstall.bat file then cleaned Registry Key ../Software/Oracle and cleaned up temp files, did a system restart. Then installed Oracle 11g Database x32 Database server, ODP.NET x32, checked Env vars.
First success was that I was able to connect to DB using SQL*Plus. After that started VS 2010 and tried to connect ..... Connected! wow has worked in VS IDE. I was so happy :)
I remember how many times I reinstalled Oracle(cleaning,configuring checking listeners, restarting services). Then my hard work really paid off.
here is a screenshot
Generally, I advise to install Oracle server under different credentials than what you usually use. The Oracle server (under Windows) makes use of a few environment variables; and the same is the case with ODP.NET as well. And while you can't easily switch between different sets of env variables in your user profile, you can assign different env var values to a (different) user under which the Oracle server is installed and/or being run.
If you already have your Oracle server installed (which, I suspect, is your case), then try:
Create a new user in your Windows, make him sufficiently privileged. ("Admin" rights will do fine. :-))
Log in as the new user.
Set up ORACLE_HOME, ORACLE_SID, NLS_LANGUAGE and PATH environment variables for that particular user (not globally for the whole Windows!) to point to your Oracle server.
Log in as the original user.
Start the Services management console ("services.msc").
Change "Log On" credentials for the OracleServiceSOMETHING and Oracle SOMETHING VSS Writer Service and OracleJobSchedulerSOMETHING and OracleOraDb11g_home1TNSListener to that new user+password you just created. (... where SOMETHING is usually the name of your instance)
Stop all Oracle services.
Set up ORACLE_HOME and PATH env var to point to your ODP.NET root and root\bin folders respectively; set up the ORACLE_SID and NLS_LANGUAGE vars to whatever values you need.
Start all Oracle services. (After this moment they should be running under their own credentials.)
Let's pray that it works.
I myself would have to improvise, too, if this scenario didn't work. But so far I have successfully run two Oracle servers and one Oracle client on the same machine this way with no problems, so I hope it works for you too. If it does not, then there's still the option of reinstalling your Oracle server completely.
Don't forget about backing up your database ... just in case something horrible happens.
I am sort of new with Oracle. We are having lot of issues.
We use two main clients for running queries. SqlDeveloper (provided by Oracle) and PL/SQL Developer 7.1.
We are trying to debug a stored procedure. Problems are:-
There are some Stored Procedures that are compiled with somename.SPNAME meaning they are in a different schema/or synonym? So when we login to our DB from SQLDeveloper we are not able to see the stored procs that were compiled with somename.SPNAME.
When we login to the Same DB via PL/SQL developer we ARE able to see above mentioned SP's however, we are not able to debug anything. Clicking on Debug toolbar shows everthing is grey'ed out (except setting/modifying breakpoints).
So from here, we need to resolve either of the issues. Either change something in sql developer so all the SP's are shown and then we can debug them (since we know debugger in sql developer works) OR make debugging work in PL/SQL developer.
I know the question and explanation got a little verbose but we are struggling with this problem and could really use some help.
For Oracle SQL Developer, you'll see other schema's objects by expanding the "Other Users" node.
For debugging with PL/SQL Developer, you'll need the "DEBUG CONNECT SESSION" privilege.