SQL * more syntax to connect to Apex 3.1 workspace
How to connect to a particular application of workspace Apex using SQL * MORE?In the tenth Summit, Sql * more command is: "sqlplus username/password" to connect and connect to the base.
However, at the Apex 3.1 "sqlplus username/password" is no longer the correct syntax to connect and connect to the database is created in the workspace Apex.
I created a table called "Sample" in the workspace Apex. I can run the sql query on the "Sample" in the GUI Apex SQL Workshop table. Type "sample to describe" workspace for SQL workshop gives me the desired result.
However, when I come out to the command prompt and use sqlplus to issue "sample", I get "table or view does not exist.
Is there any documentation on how to use SQL * PLUS to connect to the tables created in the workspace Apex?
TIA
1. If no database not created in a workspace
2. There are schemas attached to a workspace (or created by it)
3. you must connect to sql more like this:
C:\Users\Denes Kubicek>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Di Okt 14 22:19:28 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Benutzernamen eingeben: dkubicek@xe
Kennwort eingeben:
Verbunden mit:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> desc emp;
Name Null? Typ
----------------------------------------- -------- -----------------
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
SQL>
This has nothing to do with the apex.
I would say, your workspace has several patterns that are entrusted to him. You were probably asking a particular schema and he gave you the correct results. In SQL more trying to describe a table that is not there.
This should give you some results:
SELECT object_name, object_type
FROM all_objects
WHERE owner = 'DKUBICEK';
where you replace "DKUBICEK" with the name of schema, you log into SQL Plus.
To see the schema that you use for SQL Workshop / SQL commands, see the dropdown in the top right corner - schema.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------
Tags: Database
Similar Questions
-
SQL more unable to connect (computers connected via a DSL router)
Hello!
I have two computers connected locally via a DSL router. His IP address is 192.168.1.64 IP of the other is 192.168.1.65.
"I'm trying to connect to 192.168.1.64 via SQL more 192.168.1.66 by running the following command: sqlplus system@"192.168.1.64/orcl.168.1.100 "and receive this error message:" ORA-12170: TNS: Connect timeout occurred. " I thought it was the default Windows Firewall that has caused this and changed the windows firewall settings in 192.168.1.64 adding port 1521 in the list of windows firewall. Now, I get this error: "ORA-12541: listener TNS:no.»
Published by: totalnewby on June 12, 2010 10:53totalnewby wrote:
Hello!I have two computers connected locally via a DSL router. His IP address is 192.168.1.64 IP of the other is 192.168.1.65.
"I'm trying to connect to 192.168.1.64 via SQL more 192.168.1.66 by running the following command: sqlplus system@"192.168.1.64/orcl.168.1.100 "and receive this error message:" ORA-12170: TNS: Connect timeout occurred. " I thought it was the default Windows Firewall that has caused this and changed the windows firewall settings in 192.168.1.64 adding port 1521 in the list of windows firewall. Now, I get this error: "ORA-12541: listener TNS:no.»Published by: totalnewby on June 12, 2010 10:53
=================================
Suppose you have the following in your tnsnames.ora:
Larry =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost) (PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = curley)
)
)Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larry
TNS will appear in your tnsnames.ora for an entry called "larry". Then, tns sends a request to (PORT = 1521) on (HOST = myhost) to aid (PROTOCOL = TCP), requesting a connection to (SERVICE_NAME = curley).
Where's (HOST = myhost) on the network? When the request is passed to tns to the next layer in the network stack, the name "myhost" resolves to an IP address, either via a file 'hosts' local, through DNS, or possibly other mechanisms being used less. Alternatively, you can hard-code the IP (HOST = 123.456.789.101) in the tnsnames.ora.
Then, the request arrives at port 1521 myhost. If all goes well, there is a listener on myhost configured to listen on port 1521, and this listener knows SERVICE_NAME = curley. If so, you'll be connected.
A few important points.
First, the listener is a process only the side server. It's all in life seeks applications for reception for connections to the databases and set up these connections. Once the connection is established, the listener is out of the picture. It creates the connection. It does not support the connection. A listener, linking an oracle of the House, listening on a single port, use multiple instances of database in several versions of several houses. It is unnecessary complexity to try to have several headphones. It's like the telephone company, to build a separate table for each customer.
Secondly, the tnsnames.ora file is a client-side problem. Its purpose is to address resolution - the equivalent of the 'hosts' file tns further to the bottom of the network stack. The only reason it exists on a host computer is because this machine also can run client processes.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames file. In this case, you get "ORA-12154: TNS: could not resolve the connect identifier specified" no need to go looking for a problem on the host, with the listener, etc.. If you cannot place a phone call because you do not know the number (cannot find your phonebook (tnsnames.ora) or can not find the party looking for listed in it (no entry for larry)) you don't look at problems at the switchboard.
Perhaps the entry for larry was found, but myhost could not be resolved to an IP address (for example there is no entry for myhost in the local hosts file). This will mean by "ORA-12545: Connect failed because target host or object does not exist.
Maybe there is an entry for MyServer in the local hosts file, but it specified a bad IP address. This will mean by "ORA-12545: Connect failed because target host or object does not exist.
Maybe the INVESTIGATION period was good, but there is no listener running: "ORA-12541: TNS:no listener.
Maybe the INVESTIGATION period was good, there is a listener to myhost, but he is listening on a different port. "ORA-12560: TNS:protocol adapter error.
Maybe the INVESTIGATION period was good, there is a listener to myhost, listening on the specified port, it's unknown SERVICE_NAME = curley. "ORA-12514: TNS:listener is not currently of service requested in connect descriptor.
=====================================
-
SQL * more sysdba remote connection
Hi all
I am trying to connect to a remote database via splplus as the sys as sysdba user and am unable to do. However, I am able to connect as a non-sysdba user. When I try to connect as sysdba, I get no error, but the message of using sqlplus. Here is some initial information:
Customer
ServerMicrosoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. U:\>sqlplus regular_user/password@mySID SQL*Plus: Release 9.2.0.1.0 - Production on Thu Jul 2 10:05:29 2009 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL> exit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options U:\>sqlplus sys/password@mySID as sysdba Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ] where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ] <logon> ::= <username>[/<password>][@<connect_string>] | / | /NOLOG <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...] "-H" displays the SQL*Plus version banner and usage syntax "-V" displays the SQL*Plus version banner "-L" attempts log on just once "-M <o>" uses HTML markup options <o> "-R <n>" uses restricted mode <n> "-S" uses silent mode
Based on what I read here: I found that the server has a PWDmySID.ora file in % ORACLE_HOME%\database. I've updated the %ORACLE_HOME%\database\initmySID.ora file to include the REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE line and have restarted the database.Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp. U:\>sqlplus sys/password@mySID as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 2 10:21:01 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL>
Any thoughts? Apparently I do a kind of record of syntax errors, but I don't know what it is? :) Thank you.
Published by: nmd on July 2, 2009 09:43Hello
can you please try it as first incorporate in the sqlplus and then enter the user name and password...
It should also be sqlplus "sys/password as sysdba.
Concerning
-
How to get SQL * more to connect to my database of Apex?
How can I get SQL * more to connect to my database of Apex? By using the username and password I use to connect to Apex does not (ORA-01017). What should I do to connect to my db Apex?
Thank you
KimConnection string is "connect username/password@database".
The analysis schema is a database account, that's why you can log on to SQL * more like that.
This allows to get the database name
select instance_name from v$instance;
And if you forgot the password for the PT
alter user PT identified by 'your_new_password';
Scott
-
I installed Oracle Developer with success, but having bad connect to Sql more than command line, also unable to connect via the developer tools, I get a TNS: Connect timeout occurred. This happens also for the "Plus" Sql for Windows.
However, I can connect via the Sql Plus command window when it is executed from "Start-> all programs", but not when I first run the command window:
I have a good Oracle 11 g install on Windows 7 and a good developer Sql install so I can connect to databases, but something does not work when you try to connect through these tools. Although Sql Plus works when called from 'Start-> all programs'
sqlplus scott/tiger - don't use SQL * Net, you can connect like this even with the listener is stopped.
Developer SQL can ONLY connect using SQL * Net & can be blocked by the firewall
to connect using sqlplus & SQL * Net, you need to invoke it as below
sqlplus scott/tiger@orcl
-
How to validate SQL * MORE connection in Unix shell script
I wrote the following function in unix shell script to validate SQL * MORE connection and throw a user-defined message.
function check_db_conn
{
output | sqlplus-s-L $User/$Password@$SID >/dev/null
If [[$?-no 0]]; then
echo 'credentials incorrect DB.
FI
}
However, I would like to change this feature so that the user has entered a good connection and that there is a problem with TNS listener must display the appropriate message.
Hello
Try adding:
lsnrctl status $listener_name > /dev/null if [[ $? -ne 0 ]]; then echo "Issue with Listener" fi
-
Connection with SQL * more is not possible
Hello together,
I have a problem with my database and SQL Plus.
I can't connect to my DB via SQL Plus, I get the error message: > > ORA_12546: TNS: detonation verweigert (Permission denied) < <.
I tried it with several users. When I try to log in to enterprise manager or connecting to the DB through SQL Developer works very well with the user > > sys < <, only the SQL more connection does not work.
It works until yesterday that there are some problems with the DB and the processor and RAM were almost 100% occupied each.
We use the Version 11 g Enterprise Edition Release 11.2.0.1.0 64 bit Production on a Windows Server 2008 R2 Enterprise Server.
I am running SQL Plus, Enterprise Manager and SQL Developer directly on the DB server.
When I start SQL Plus he asks me my username > > enter user name: < < and after that my password: > > password: < <.
A connection as seen in many forums or document on the internet like > > scott/tiger@ORCL < < never worked on my system, which is also confused me.
We have no listener.ora file in the folder: ORACLE_HOME/NETWORK/ADMIN only a sqlnet.ora with line > > SQLNET. AUTHENTICATION_SERVICES = (NTS) < < in it.
Status of the listener:
---------------------------------------------------------------------------------------------------------------------------------------------------------
C:\Windows\System32 > lsnrctl status
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 18 February 2014 12:14:32
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production
Start date February 18, 2014 10:15:54
Uptime 0 days 1 hour 58 minutes 42 seconds
Draw level off
Security ON: OS Local Authentication
SNMP OFF
O:\app\administrator\diag\tnslsnr\QualisysDbNbg\listener\alert\log.XML log listener
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=QualisysDbNbg) (PORT = 1521)))
Summary of services...
Service "orcl" has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
The command completed successfully
C:\Windows\System32 >
---------------------------------------------------------------------------------------------------------------------------------------------------------
I hope someone can help me with this problem.
Thank you you very much in forward for your answerand greetings
Matthias
The sys user must connect as sysdba
have you tried
sqlplus 'sys@ORCL as sysdba'
or
sqlplus 'sys/yoursyspwd@ORCL as sysdba'
the first command should work without password for all users group ORA_DBA.
Scott, the user cannot also exists in your database.
-
Connection to the 11g on Oracle_Developer_Days.ova with sql + more
I downloaded the Oracle_Developer_Days.ova and have confirmed with connectivity
C:\Users\robm > ping ServeurOracle
ServeurOracle ping [192.168.11.18] with 32 bytes of data:
Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64
Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64
Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64
Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64
Ping statistics for 192.168.11.18:
Packets: Sent = 4, received = 4, lost = 0 (0% loss),
Time approximate round trip in milli-seconds:
Minimum = 0ms, Maximum = 0ms, average = 0ms
C:\Users\robm >
I have advanced and installed the client instant and also installed the sql + more
C:\Users\robm > sqlplus scott/tiger@orcl
SQL * more: Production of the 12.1.0.1.0 on sat Nov 30 00:27:44 version 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener is not currently of service requested in connect
descriptor of
Enter the user name:
Here the tnsnames.ora can, I did you see errors?
XRACQ_MYSERVICE_TAF =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracleserver) (PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)
)
)
any ideas on how to make it work?
I now get
ORA-01017: name of user and password invalid. connection refused
using tsnames.ora
WEIRD =.
(DESCRIPTION =
(ADDRESS_LIST =
(ADRESSE = (PROTOCOL = TCP) (HOST = 192.168.11.18)(PORT = 1521)))
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
so I seem to connect now... . How can scott Tiger be wrong isn't the default?
-
Can I connect to SQL * more as SYS after connecting as a user and then run a GRANT?
Oracle 11 g 2
Linux RHEL 6.3
SQL * Plus 11.2.0.2 on Windows 7
------------------------------------------------
I am running a script SQL through SQL * more connected as "DOE, JOHN".
In the SQL script, I need to connect as SYS to make a GRANT EXECUTE on a SYS package (e.g. GRANT EXECUTE ON DBMS_CRYPTO to JOHN;).
But it fails with the following error:
GRANT EXECUTE ON TO JOHN DBMS_CRYPTO
*
ERROR on line 1:
ORA-01917: user or role 'JOHN' does not existBut of course, 'JOHN' are. The rest of the SQL script is running "DOE, JOHN" without any problem.
The code segment of SQL script in question is:
connect sys/password as sysdba
GRANT EXECUTE ON DBMS_CRYPTO TO ROYSECITYDATA; <-fails here
to connect/DOEPlease advise on what my being the issue.
tx103108 wrote:
I connect to a remote database. All dbs distance have the same instance name as they are all images. I see where you're going (I think). Should I try
I'll try to connect sys/password@MYDB
Sounds like a plan... (the instance_name returned with what you expected? or something else?)
-
Connect to the database with SQL * more: is TNSNAMES. ORA used?
Hello
We have a local database called DEV01 and a copy of this database in a data center. To be able to connect to both databases, the TNSNAMES file. ORA
on the local database server (not the one in the data center) has the following entries:
/ * Entry for the local database * /.
DEV01_local, DEV01_local. WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server01) (PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = DEV01)
)
)/ * Entry for the database in the data center * /.
DEV01, DEV01. WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = server02) (PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = DEV01)
)
)When I connect to the local database server, I set the Oracle environment as follows:
export ORACLE_SID = DEV01
export PATH=/opt/oracle/app/oracle/product/9.2.0/bin:$PATH
export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2.0
Now I start SQL * more as follows:
Oracle # > sqlplus user/user
SQL > select instance_name, host_name from v$ instance;
INSTANCE_NAME HOST_NAME
---------------- ----------------------------------------------------------------
SERVER01 DEV01
As the SID is on two databases of the same (DEV01) I really don't understand how Oracle decides which of the SQL databases * more connects to.
Is it the entry in the TNSNAMES file. ORA?
But when I start SQL * more as follows:
Oracle # > sqlplus user/user@DEV01_local
SQL > select instance_name, host_name from v$ instance;
INSTANCE_NAME HOST_NAME
---------------- ----------------------------------------------------------------
SERVER01 DEV01
or
Oracle # > sqlplus user/user@DEV01
SQL > select instance_name, host_name from v$ instance;
INSTANCE_NAME HOST_NAME
---------------- ----------------------------------------------------------------
DEV01 server02
everything is as expected.
Does anyone know who is the chosen database when just to connect with 'sqlplus user/user' (without the @DEV01 or @DEV01_local)?
Any help will be appreciated!
Rgds
Jan
When you connect to the local database that is connected to the server01, you need only specify the sid in the environment, in this case, Oracle tnsnames file to connect, actually uses, it uses any of the listener. It uses what is called a connection needed. It is purely a side connection server, and as long as the sid is located in the environment resolves to a database running on that server, you will be get connected.
When you connect using the @connect_descriptor, like you second case, then Oracle will use the configured naming, including tnsnames, methods to solve the 'real' database In this case, the auditor is required to create the connection to the database.
John
-
Unable to connect to the database using SQL * more
Hi, I have Oracle 10 g XE installed in my labtop, and I can't connect using SQL * more.
I can connect using the User Interface of navig however, I could do after the following procedure to change the password for the sys account:
-Open a command prompt
-type sqlplus
-On the line "Enter user name", enter the sysdba virtue
-On the SQL > prompt, type alter user sys identified by NewPassword;
But the thing is that even if I am able to connect using sys/NewPassword from my browser UI, I don't get the same result when do this using the SQL prompt.
What I try to do is the following:
SQL > connect sys/NewPassword
Can I get first a warming of the planet by saying I should use sysdba or sysoper to connect to the system account, but none of those who work.
Can anyone advice me on this subject?
Thanks in advanceDoes make sense at all?
You really need to Read The Fine Manual
http://download.Oracle.com/docs/CD/E11882_01/server.112/e16508/TOC.htmWhen you log in as USER "SYS" DB must be described as 'AS SYSDBA'
sqlplus
/ as sysdba
SHOW USER;
-line above indicates that you are now connected to the DB as "SYS"!SQL > CONNECT SYS / AS SYSDBA
-
Unable to connect to an instance by using EM but properly connect with SQL * more
Hello
I followed the following steps (from the document s/n 2 days):
1. I created a model (including the database) to an instance named "orcl" using DBCA, before we proceed to create the model, DBCA informed me that the Forum might be stopped, I told him to go ahead.
2. the model has been successfully created.
3. I am now unable to connect to the instance orcl using EM, but I can connect to this instance without any problem using SQL * more.
Question: Why am I not able to connect to the instance by using EM? and what should I do to fix this?
Thank you very much for your help,
John.
PS: in case it may be useful, the listener tnsnames and Sqlnet files follow:
# listener.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:E:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521)) ) ) ADR_BASE_LISTENER = E:\Oracle
# tnsnames.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. DBCA = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = dbca.localsite.com) ) ) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) LISTENER_ORCL = (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521)) ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.localsite.com) ) )
# sqlnet.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora # Generated by Oracle configuration tools. # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
I think you change some configuration of your system as domain/IP address/host name.
You needset ORACLE_SID=orcl emca -deconfig dbcontrol db -repos drop emca -config dbcontrol db -repos create
then after result
-
Hello
Just do a fresh install on a Windows 2008 (32 bit) "vrigin" XE 11 G. Everything seems to work properly can access through the front-end web, connect to Apex etc.
I want to upgrade from the Apex to the latest version if you need to run SQLPlus scripts... Impossible to connect, get the error message in the title.
Have done exactly the same setup and procedure on the computer laptop Windows 7 and Windows 2008 (64-bit server) without problem... no idea why this would be different?
OK solved this... Windows problem, but I don't know what. Automatic updates were turns off so decided to let the server itself up-to-date patch while watching in this... one of the patches installed seems to fix the problem, which I do not know if.
-
Database demo of vision: how to access the database through SQL * more?
I'm totally new in this space, so forgive my beginner questions.
What I want to do, is to integrate EBS with APEX. To get there I downloaded (of delivery) and installed the Vision database unique node in a VirtualBox. To do this, I followed this video on YouTube: https://www.youtube.com/watch?v=8JgxMDPsd6s
Now I want to install APEX and for this I need to access my database as SYS. Now for my questions:
1. How can I use SQL * more in the VirtualBox?
2. What is the default password for SYS with this demo database?
Thanks, Alex
File under $ORACLE_HOME and the owner is the user 'oracle '.
You will need to source the file VISION_ebs.env , and then deliver "env | fate"and you should see the set env variables. You can connect as sysdba.
Thank you
Hussein
-
get my IPAddress through sql * more
Hello all;
I tried to use
to get my ip address and it's back a white, again I tried to useselect sys_context('Userenv', 'ip_address') from dual;
and it gives me the following error belowselect utl_inaddr.get_host_address('johnp') from dual
and I give all the subsidy required to the user associated with the help* ERROR at line 1: ORA-24247: network access denied by access control list (ACL) ORA-06512: at "SYS.UTL_INADDR", line 19 ORA-06512: at "SYS.UTL_INADDR", line 40 ORA-06512: at line 1
Published by: user13328581 on March 13, 2012 08:06grant execute on utl_inaddr to financecc;
user13328581 wrote:
I know Ipconfig in the command windows... and I know the difference between the client and the server computer. I'm doing a simple test that is to know if there is an ip address any available when you have a client and a server running on the same computer
The server will see IP address of the client in this case if the client-server connection has been made by IP. A local connection using CPI (direct process-to-process communication). No IP involved. And so the server does not recognize the customer as a client IP.
Example:
// local connection that does not use TCP/IP /usr/lib/oracle/xe> sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 14 18:10:16 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production SQL> select sys_context('user', 'ip_address' ) as CLIENT_IP from dual; CLIENT_IP --------------- SQL> exit
Only when the client is an IP connection, the server has the means to determine the IP address of the client. For example
// force a TCP/IP connection via the Listener via localhost /usr/lib/oracle/xe> sqlplus scott/tiger@"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)) (CONNECT_DATA=(SID=vlk)))" SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 14 18:12:14 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production SQL> select sys_context('user', 'ip_address' ) as CLIENT_IP from dual; CLIENT_IP --------------- 127.0.0.1
by the way your syntax
! ipfconfig>
does not work, it gives the following errors below
It depends on where run you it from. This command is intended for SQL * more and gives instructions to create a child process that calls the operating system command line. For example
SQL> ! /sbin/ifconfig eth0 eth0 Link encap:Ethernet HWaddr 70:71:bc:ac:3d:49 inet addr:10.251.93.30 Bcast:10.251.93.255 Mask:255.255.255.0 inet6 addr: fe80::7271:bcff:feac:3d49/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17171605 errors:0 dropped:2200 overruns:0 frame:0 TX packets:9055411 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11744534737 (11.7 GB) TX bytes:1429625375 (1.4 GB) Interrupt:20 Memory:fe400000-fe420000 SQL>
This isn't a PL/SQL statement (language server).
Note that all side code Server (SQL and PL/SQL) is sent by SQL * more to the server process. In addition, SQL * Plus itself has a primitive vocabulary control and these commands it runs on the client.
This is why I pointed to the possible confusion of client-server, because there is a very clear and definitive separating SQL * more and its commands and the Oracle server and its languages SQL and PL/SQL.
Maybe you are looking for
-
I have a HP Officejet 6500 (E709n series) I can print is no longer my Android device base. I have the latest drivers installed on my Win 7 64 bit Premium edition and have flashed the latest firmware available on the HP site. There was a time there is
-
Fan runs continuously when open the mail
I have a new 15 "MacBook Pro retina, I have Aproblem with the fans running constantly. This only seems to happen when the mail is opened. If leaving the app e-mail the fan speed reduces and stops. When I open the application mail in seconds the fan s
-
Hi guys, I'm kinda new to the instruments OR, and I need to understand how to read data from a PXI-1042 q, which has a PXI-8187 embedded controller and an array of the PXI-4472. I need to read the data to an external computer via one of the serial po
-
No sound on HP Elitebook 8460w
HP elitebook 8460w has a red x on the volume icon. How can I fix it? Is a card his lack or something.
-
Flash player is installed, but cannot get a flash video to play
I use a 64-bit version of vista and I can not get any flash video to play. It shows that I have flash player installed, but it does not work. When I click on the adobe link, which fills the video area it says that flash is not supported for 64-bit