Limit users to execute "SELECT" statemes only from SQL Developer
Hi:
Is there a way to control what SQL command can be executed from SQL Developer?
I am trying to limit users to execute "SELECT" statements only from SQL Developer.
I believe SQL*Plus used to have the product profile where I can control what SQL command can be executed from what user.
Thanks in advance.
There's nothing special in sqldev to enforce privileges, the database does all that already. See the database documentation on the GRANT and REVOKE statements. Basically, you would only want to grant SELECT privileges to your users...
Have fun,
K.
Similar Messages
-
Create trigger not audited when run from sql developer Version 3.2.20.09
Creating or editing a trigger is not being stored in the audit table when run from sql developer.
Here is a sample script to show the issue:
Grant Connect,create table,create trigger To testuser Identified By testuser;
create table testuser.testtab(t1 number);
Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
Insert
ON testuser.testtab FOR EACH ROW
begin
null;
end;
Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
drop user testuser cascade;
If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
If I edit the trigger from All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.DoyleFreeman wrote:
Not sure what you mean by "perform the audit".
Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
https://forums.oracle.com/community/developer/english/oracle_database/general_questions
Yes - and it works just fine once you ENABLE AUDITING. Your scripIt does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
Have you read any of the extensive documentation about auditing to learn how to use it?
See the Database Security Guide
http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
Also see 'Auditing Functions, Procedures, Packages, and Triggers
http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
Select count(*) From Dba_Audit_Trail Where (Owner='SCOTT' or username = 'SCOTT')
and action_name = 'CREATE TRIGGER';
COUNT(*)
0
audit create trigger by scott
CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
Insert
ON emp_copy FOR EACH ROW
begin
null;
end;
Select count(*) From Dba_Audit_Trail Where (Owner='SCOTT' or username = 'SCOTT')
and action_name = 'CREATE TRIGGER';
COUNT(*)
1 -
Performance problem with slow VIEW from JDBC (fast from SQL Developer)
Hi all,
I'm experiencing following problem and would like to know if someone else also hit this one before and has a suggestion how to solve it:
I have a pretty complicated SELECT statement that per definition returns only a few rows (~30). With no further optimization it takes ~20 seconds to return the full dataset in Oracle SQL Developer. If you add the */+ PUSH_PRED(name_of_some_inner_view) /* hint (hint is correct, stars got eaten by the OTN-forum syntax), the statement takes less than 0.5s to execute (still in SQL Developer). I saved the statement with the hint as VIEW. Selecting from the VIEW in SQL Developer is also fast.
Now if I call the statement from JDBC (Tomcat webapp), I can see from the server console that the statement is 1:1 100% the same as the one I execute in SQL Developer. Nevertheless it takes about 20 seconds to complete.
Here my details:
SELECT banner FROM v$version;
BANNER
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
JDBC Driver used: some old odbc14.jar as well as current odbc6.jar for 11.2.0.2.0 from http://www.oracle.com/technetwork/da...10-090769.html
SQL Developer: current version 3.2.20.09From my reading this could go wrong:
- JDBC doesn't know the VIEW's column data types and Oracle behaves mysterious because of this (=there must be more to the SELECT than just the string, some meta-information)
- For some reason the hint inside the VIEW is not used (unlikely)
I also tried a Table Function/Pipelined table and selected from it as a workaround, but the result is the same: Selecting from Function is fast from SQL Developer, but slow from JDBC. All other statements that come from JDBC are as fast as they should be. I really don't know what to think of this and where the error might be.
Is there some setting that tells Oracle not to use hints when called from JDBC?
Thank you & Best regards,
BlamaHi Bawer,
that's what I'm thinking. Unfortunately I can't post it, as it is library code (not my lib). But in the debug-output I can see the SQL-String sent to the DB (which does include the hint).
But I find the 2nd option you mention more likely anyway: Even if I put the hint into a VIEW and select from the view, the time-difference is there (it's even there if I use Table Functions/Pipelined table and select from the function).
So I'd think it is more likely that something else is happening (e.g. Oracle is configured in a way that it does not use hints when called from JDBC or similar. Or the library sets some session options in order to prevent the usage of hints). But I don't know if there is even the possibility of doing so.
Does the Oracle JDBC driver have the option to set these options?
Does the Oracle DB have the option to set sth. like "ALTER SESSION SET dontUseHints = 'Y';" -
No more Data to read from socket from SQL Developer
Hi,
When I run the below query from SQL Developer, I get "No more data to be read from socket" error. The Oracle trace shows "Address not mapped".
select LDateDayPrec, LDateMonPrec, LDateOrder, LDateOrder_cd, LDateSep, LDateYearPrec,
LanguageCode, LanguageCode_cd, NegNumPres, NegNumPres_cd, NullNumPres, NullNumPres_cd,
NumDecimalChar, NumUnitSep, NumUnits0, NumUnits1, NumUnits2, NumUnits3, NumUnits4,
NumUnits5, ProfileName, SDateDayPrec, SDateMonPrec, SDateOrder, SDateOrder_cd, SDateSep,
SDateYearPrec, TimeFlg, WeekDayPres, WeekDayPres_cd, ZeroPres, ZeroPres_cd,Nls_profile_ver
FROM NLS_PROFILE WHERE NlsProfileId =1"
When I run the same query on the server through SQL Plus session, the result is getting fetched properly.
Next thing , when I select only 28 columns from the table in the above query, then also the row is getting fetched. I tried interchanging the columns. In that case also, the result is same. Also, when I do a "select * from NLS_PROFILE " , the row is getting fetched..
Can somebody help ?SQL> SELECT * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
One more info: This table "NLS_PROFILE" is not on the DB where I am running the query. It is on a remote DB which is accessed via a synonym created over a DB link
Edited by: 840203 on Feb 28, 2011 9:57 PM -
Connect from SQL Developer to several SQL Server instances
Our SQL Server has more than one instance, but I see only one instance of them trying to connect from SQL Developer 1.2 to SQL Server. How I should define the connection information? Usually we connect to SQL Server by <hostname>/<instancename> and then the database name as CatalogName (Initial Catalog). In the Oracle world you can give only the hostname, a port number and the database name. How I can convince the SQL Developer to choose one of our SQL Server instances?
Hi user627927,
Bug/Enhancement request already logged.
We have not got this configuration in house, two people have suggested workarounds but we are unable to test them for now. The last person was unable to get these workarounds working, and we have not confirmed them in house.
Can you get the instances connected through two different ports?
It would be great if you could confirm either workaround.
-Turloch
*1/Suggestion 1 change the URL through SQLDevelopers xml connection store.
*2/Overload the port field to have instance in the eventual url
*1/Suggestion 1 change the url through SQLDevelopers xml connection store.
[Note it is probably simpler to connect a dummy connection through the connection dialog as usual save it (you cannot connect) and then add the instance information rather than having to enter all the information in an unmanaged way.]
Hi Naveen,
I had same problem as you and user579801. I managed to resolve it by doing the following.
1. Locate the file called IDEConnections.xml in the folder where you have installed SQL Developer (eg. c:\sql developer\sqldeveloper\system\oracle.jdeveloper.db.connection.11.1.1.0.11.42.62).
2. Create the following entries under <connections> tag.
<connection>
<URL>jdbc:jtds:sqlserver://\\.\;namedPipe=true;instance=SQLDBNam;</URL>
<ConnectionName>SQLServer</ConnectionName>
<user>SQLUser</user>
<ConnectionType>JDBC</ConnectionType>
<DeployPassword>false</DeployPassword>
<JdbcDriver>net.sourceforge.jtds.jdbc.Driver</JdbcDriver>
<RaptorConnectionType>Microsoft SQL Server</RaptorConnectionType>
</connection>
3. Save the file; Close and re-open the SQL Developer and try connecting.
Hope this will solve your problem. Good luck.
Regards
Raja
*2/Overload the port field to have instance in the eventual url
This took some figuring out but I cracked it in the end....
SQLServer tab:
Hostname: <servername>
Port: <portnumber>/<databasename>;instance=<instancename>
so for me the Port field looks like this: 1433/Gaffa;instance=SQL01
That should now connect to a named instance SQL Server.
Paul Fairhurst -
System events not captured when call from SQL Developer?
Hi,
This seems a bit weird to me. I'm not sure if there is something going on that I'm not seeing, or just not aware of.
Oracle 9.2.0.5.0
SQL Developer 2.1.1.64
If I run the following in sqlplus, I correctly get a trace file generated
alter system set events '1403 trace name errorstack level 14';
begin
raise no_data_found;
end;
OS Pid: 553 executed alter system set events '1403 trace name errorstack level 14'
Fri Apr 9 14:11:01 2010
Errors in file /filer3/admin/dev2/udump/dev2_ora_553.trc:
ORA-01403: no data found
ORA-06512: at line 2However, If I run it from SQL Developer.. No trace file is generated. All i get in the log file is the alter system message
OS Pid: 6806 executed alter system set events '1403 trace name errorstack level 14'Any idea what could be going on here? I'm not sure if this is an Oracle problem, or an SQL Developer problem? Or I'm just misunderstanding how this should work?
Thanks
Matt.Sorry I forgot to mention, I'm selecting Run script ( F5 ) in SQL Developer.. The script output in SQL Developer is
alter system set succeeded.
Error starting at line 71 in command:
begin
raise no_data_found;
end;
Error report:
ORA-01403: no data found
ORA-06512: at line 2
01403. 00000 - "no data found"
*Cause:
*Action: -
Hi Oracle Cloud Gurus,
I have signed up for Oracle Database Cloud Service Trial and activated the same. I am able to login to Apex applications, SQL Workshop etc but not able to connect from SQL*Developer on my local m/c.
I configured the "Cloud Connection" by giving the provided username, password and URL. When I try to connect, I get the error - "HTTP/1.1 302 Found". Any ideas how to resolve this ?
Here is the complete error stack:
oracle.dbtools.raptor.cloud.auth.AuthenticationFailedException: HTTP/1.1 302 Found
at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:162)
at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.authenticate(BasicAuthenticationEngine.java:63)
at oracle.dbtools.raptor.cloud.auth.basic.GUIBasicAuthenticationEngine.authenticate(GUIBasicAuthenticationEngine.java:26)
at oracle.dbtools.raptor.cloud.connection.ConnectionCreator.createConnection(ConnectionCreator.java:24)
at oracle.dbtools.raptor.cloud.connection.CConnections$C.getConnection(CConnections.java:39)
at oracle.dbtools.raptor.cloud.connection.CConnections.getConnection(CConnections.java:176)
at oracle.dbtools.raptor.cloud.navigator.CloudConnection.openConnectionImpl(CloudConnection.java:127)
at oracle.dbtools.raptor.cloud.navigator.CloudConnection.getConnection(CloudConnection.java:89)
at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:74)
at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:38)
at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: HTTP/1.1 302 Found
at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:250)
at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:24)
at oracle.dbtools.raptor.cloud.connection.CloudHander.handleResponse(CloudHander.java:38)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:945)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
at oracle.dbtools.raptor.cloud.connection.DefaultClient.executeRequest(DefaultClient.java:96)
at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:153)
... 17 moreCan you please post some of the values you are using to connect to your Schema Service? (please redact the hostname URL for security purposes)
You can also follow this tutorial:
Data Loading and the Oracle Database Cloud Service
Format is usually:
username used to sign up
password giving at sign up
Service Instance URL -
How export datas with special characters from SQL Developer?
Hi.
I'm doing an import of datas of a table, but this table have special characteres in specific accents (á,é,í,ó,ú), my source table have for example "QRCN Querétaro, Candiles" but when I done an export from opcion Tool --> Export DLL (and Datas) from SQL Developer generate the next script
Insert into tablexxx(CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20280','QRCN Quer?ro, Candiles');
How can I do for export my datas and generate the script correct?
Insert into tablexxx(CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20280','QRCN Querétaro, Candiles');
thanks.Hi sybrand_b,
1. In my SQL Developer I select Tool-->Export DDL (and Data).
2. I Select name file, connection (this is a remote DB), objects to export in this case I select 'Tables and data' and table name to export
3. Run the procedure and generate the script following:
-- File created - jueves-julio-01-2010
-- DDL for Table TABLEXXX
CREATE TABLE "BOLINF"."TABLEXXX"
( "CADENA" VARCHAR2(50 BYTE),
"NUMERO_FARMACIA" VARCHAR2(50 BYTE),
"SUCURSAL_REFERENCIA" VARCHAR2(200 BYTE)
-- DATA FOR TABLE TABLEXXX
-- FILTER = none used
REM INSERTING into TABLEXXX
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20280','QRCN Quer?ro, Candiles');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20281','QRCG Quer?ro, Corregidora');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20282','QRFU');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20283','QRFU');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20284','SAUN San Lu?P, Universidad');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20285','SAEV San Lu?P, Eje Vial');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20286','SALB San Lu?P, Los Bravo');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20287','SAAL San Lu?P, Alvaro Obreg?');
Insert into TABLEXXX (CADENA,NUMERO_FARMACIA,SUCURSAL_REFERENCIA) values ('C002','20288','SACA San Lu? Callej?n de Cod');
4. But my source table have the next datas.
Select * from TABLEXXX.
CADENA NUMERO_FARMACIA SUCURSAL_REFERENCIA
C002 20280 QRCN Querétaro, Candiles
C002 20281 QRCG Querétaro, Corregidora
C002 20282 QRFU
C002 20283 QRFU
C002 20284 SAUN San Luís P, Universidad
C002 20285 SAEV San Luís P, Eje Vial
C002 20286 SALB San Luís P, Los Bravo
C002 20287 SAAL San Luís P, Alvaro Obregó
C002 20288 SACA San Luís, Callejón de Cod
5. I have done a query to table nls_database_parameters.
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZH:TZM
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_RDBMS_VERSION 10.2.0.4.0
6. I have revised in Regedit-->HKEY_LOCAL_MACHINE-->SOFTWARE-->ORACLE-->ORACLE HOME and value for NLS_LANG=AMERICAN_AMERICA.UTF8
where should I change for export my datas correct?
or exist any form for export my datas?
thanks a lot.
regards -
Package Body from SQL Developer ?
Team I am using SQL Developer Version 2.1.1.64 But I can not able to see the package body.
Right click on the package provides an option to 'Save Package Spec and Body', but when I save it .. it only store the package spec ..
Is it not possible to view the package body from SQL Developer ?
Can anyone confirm ... how to get code of package body ... ?Hi Bipul,
Although there might be people here using that specific tool, there is still the dedicated SQL Developer forum to ask in:
SQL Developer
Regards
Peter -
File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13
File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
ThanksI hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print -
Failure to connect to 11G XE from Sql Developer
Hi Gurus,
I have been trying for more than a week to make this work. Basically I am trying to install XE database 11.2.0 on my windows 7 64 bit computer.
I have had problems with the getting the listener up , finally managed to get it up by deleting the Oracle_home and reinstalling 11g XE.
Changed the listener.ora file to include the sid XE - restarted th listener so now its working.
-- I am able to start the instance from command prompt as
SQL> conn / as sysdba
Connected.
SQL> startup
ORACLE instance started.
Total System Global Area 1071333376 bytes
Fixed Size 1388352 bytes
Variable Size 620757184 bytes
Database Buffers 444596224 bytes
Redo Buffers 4591616 bytes
ORA-00205: error in identifying control file, check alert log for more info**
When I checked the log files here are the details
from C:\Oracle11XE\app\oracle\diag\rdbms\xe\xe\alert
<txt>ORA-00210: cannot open the specified control file
ORA-00202: control file: 'C:\ORACLE11XE\APP\ORACLE\ORADATA\XE\CONTROL.DBF'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
</txt>
Please let me know how I can resolved this issue. The eventual goal is to get the database up and running and be able to conenct from Sql Developer installed on the same machine.
any help will be greatly appreciated.
Here are some details
tnsnames.ora
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = <Cumputername>)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\Oracle11XE\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Oracle11XE\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = XE)
(ORACLE_HOME = C:\Oracle11XE\app\oracle\product\11.2.0\server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = <ComputerName>)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
lsnrctl status result
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
ction
Start Date 30-JAN-2013 11:35:47
Uptime 0 days 0 hr. 0 min. 13 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\Oracle11XE\app\oracle\product\11.2.0\server\network
\admin\listener.ora
Listener Log File C:\Oracle11XE\app\oracle\diag\tnslsnr\ZaidHP\listener\
alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ZaidHP)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
Instance "XE", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Thanks
Edited by: user12026382 on Jan 30, 2013 10:57 AMHi clcarter
Thanks for your input. I actually did a complete de-install and re-install.
The two things I did differently this time was
1. Delete any ORACLE_HOME or ORACLE_SID variables that were existing and just to make sure check from cmd> set ORACLE_HOME - should return not defined.
(This I found at a different forum)
2. Run the setup (as administrator) this time.
And you guessed it.. It worked. I was able to login to the database. Also could go to the database home page.
Thanks for your inputs.
On a side note.. since I am new to forums, I wanted to know how you quote things in the grey area as you did when you replied 'ORA-00205: error in identifying control file, check alert log for more info'. -
Could not connect to a DATABASE with localhost as Hostname from SQL develop
I am not able to connect to any Database from SQL Developer by providing "localhost" as Hostname. I could able to connect by providing the IP(192.168.1.50) of the system.
The problem here is If I am out of internet, My system does not have IP, So I am not able to connect to DB
But I need to submit a project wheere I will not have any internet. Could you please let me know how to connect to DB using localhost
Following are the listener.ora and tnsnames.ora files.
listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.50)(PORT = 1521))
=============================
tnsnames.ora
# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\db_2\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORA9 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.50)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora9)
ORA8 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.50)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ora8)
EMP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.50)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = emp)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.50)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
Thanks in advance,
SriniOracle always uses DNS.
DNS consults the local host file.
Try in a command box
ping localhost
This should work.
If this doesn't work you need to edit
%WINDOWS%\'systems\drivers\etc\hosts
The first line needs to read
127.0.0.1 localhost
Sybrand Bakker
Senior Oracle DBA -
Executing PLSQL statements on Oracle SQL Developer
Hello All,
I am trying to execute following PLSQL statements through SQL Developer:
DECLARE
myvar VARCHAR2(30);
BEGIN
myvar := 'TEST NAME';
DBMS_OUTPUT.PUT_LINE(myvar);
END;
But nothing is being displayed. And when I execute the same on SQL*Plus, the output is properly being displayed.
How can I a make it work on SQL Developer also.hi
try this ......
set serveroutput on;
DECLARE
myvar VARCHAR2(30);
BEGIN
myvar := 'TEST NAME';
DBMS_OUTPUT.PUT_LINE(myvar);
END;
if it is correct then please make it correct /helpful
Thanks
shyam~ -
DateField: Restrict user to select date only from the calender control ??
How can I restrict user to select date only by using the Calender control, not by typing.
AbhinavHi,
This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
In ON-ERROR Trigger::
BEGIN
DECLARE
err_code CONSTANT NUMBER := error_code;
err_type CONSTANT VARCHAR2(3) := error_type;
BEGIN
IF (err_type = 'FRM'
AND err_code IN (40200)) THEN
Message('Updates Not allowed, Please Select Your Date from Calendar');
Message(' ');
ELSE
NULL;
END IF;
END;
END;
Thanks,
Bhujendra -
Exporting selected range only from Excel / Calc
Hi,
I would like to know if it is possible to create a PDF that contains only a selected range of cells, when working in MS Excel or OO.o Calc.
I don't mean just checking the Print only Selection option -- that prints those cells, but into a letter-sized PDF.
What I would like to do is to have the selection and only the selection - with no surrounding white space (except perhaps a small margin) - in the PDF. That is, the PDF would be resized to match the dimensions of the selection.
I guess what I have in mind is similar what you would get if you created the PDF as usual, then cropped out the surrounding white space - but done automatically.
Many thanks in advance.
PS - I am using Adobe Acrobat 9.3 with MS Office 2007 or OO.o 3.2 on Windows 7.I'm not sure this is relevant but I mistakenly wrote above that I was using Excel 2007. Actually, it's Excel from Office 2010 Beta. However, I remember trying this as well in Office 2007 so I don't think that's related.
Maybe you are looking for
-
Sale order transaction held with error in MMT interface
A sale order is shipped from order management but it entry struck in transaction interface with anonymous error, error code is "Oracle error", we are unable to diagnose that what is the cause of struck transactions. Pl guide what should we do? Regard
-
Lots of problems with my iPod touch 4th generation
I am having a few problems with my iPod touch 4th Generation. I have been having them for a while and I would really like to get them fixed. My first and main problem would be that my iPod touch is not being recognized by my computer (windows) and i
-
Dear Gurus, In our company we are following TAXINN and our Plant and regular Customers are applicable for Excise. If Customer is Excise relevant, in J1ID, under 'Customer Excise Details' we assign 'Customer Excise Indicator' as '1' and if not relevan
-
Problem with Updating clients with UNIX command
Hi. Until this day, I used to update all our 50 client macs by manually logging in as administrator via ARD and choosing Software Update from the apple menu, this works always and I use our own servers SUS so the downloading is really fast. Still, th
-
Function module message for variant configuration
looking for some tips and examples for creating one variant function module (CU65) that could be used with all KMATs module simply needs to say "selections not consistent with chosen model" so the end result is that any procedure could reference this