Database locking (state versus stateless) and indexes on oracle database
Does anyone have a link to a document talking about database locking (state versus stateless) and talking about indexes in oracle database?
No version information and no information as to what you mean by "locking" so no help is possible.
You could mean LOCK TABLE in version 7.3.4 or SELECT FOR UPDATE in 11.1.0.7 or something else entirely.
Similar Messages
-
Difference between upgrdae and migration about oracle database
Difference between upgrdae and migration about oracle database
please give the commentsWell, the question is almost philosophic...<br>
In 9i, there is a Migration Guide whereas in 10g there is a Upgrade Guide.<br>
Furthermore, in 9i, there is the command line startup migrate whereas in 10g that's startup upgrade.
Somebody think upgrade when go to new release, and migration when go to new version.<br>
Others think upgrade when new version replace database in place, and migration when new version include a move of database.<br>
Another point of view is : upgrade is for technical, and migration for application/data.<br>
<br>
Well, after these explanations, your upgrade/migratation notion will not be more clear, but I think that is not very important, only a terminology game. The most important is to know what you need : new version or new release.<br>
<br>
Nicolas. -
Convert flat file to XML document and store into Oracle database
First:
I have a flatfile and created external table to read that file in Oracle
Now I want to create an XML document for each row and insert into Oracle database, I think that XMLtype.
Could you please provide me some information/steps.
Second:
Is there performance issues, because everyday I need to check that XML document stored in the database against the in coming file.
Thank You.Oracle 11g R2 Sun Solaris
Flat file is | (pipe delimited), so I did create an EXTERNAL Table
row1 a|1|2|3|4
row2 b|2|3|4|5
row3 c|6|7|8|9
I want to store each record as XML document. So it will be easy to compare with next day's load and make insert or update.
The reason is:
First day the file comes with 5 columns
after some days, the file may carry on some additional columns more than 5
In this case I do not want to alter table to capture those values, if I use XML than I can capture any number of columns, CORRECT!. Please make me correct If I am wrong.
This is the only reason to try to use the XMLType (XML Document)
On Everyday load we will be matching these XML documents and update it if there is any column's value changes
daily average load will be 10 millions and initial setup will be 60-80 millions
Do I have anyother option to capture the new values without altering the table.
Please advise!. -
The error below makes absolutely no sense! I'm using Enterprise Core...yet I'm being told I can't use remote data sources:
w3wp!library!8!03/05/2015-19:08:48:: i INFO: Catalog SQL Server Edition = EnterpriseCore
w3wp!library!8!03/05/2015-19:08:48:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: , Microsoft.ReportingServices.Diagnostics.Utilities.OperationNotSupportedException: The feature: "The edition of Reporting
Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.;
Really? This totally contradicts the documentation found here:
https://msdn.microsoft.com/en-us/library/ms157285(v=sql.110).aspx
That article says remote connections are completely supported.
ARGH! Why does this have to be so difficult to setup?!?Hi jeffoliver1000,
According to your description, you are using Enterprise Core edition and you are prompted that you can’t use remote data sources.
In your scenario, we neither ignore your point nor be doubt with what you say. But actually we have met the case before that even though the SQL Server engine is Enterprise but the reporting services is still standard. So I would recommend you to find the
actual edition of reporting services you are using. You can find Reporting Services starting SKU in the Reporting Service logs ( default location: C:\Program Files\Microsoft SQL Server\<instance name>\Reporting Services\LogFiles). For more information,
please refer to the similar thread below:
https://social.technet.microsoft.com/Forums/en-US/f98c2f3e-1a30-4993-ab41-acbc5014f92e/data-driven-subscription-button-not-displayed?forum=sqlreportingservices
By the way, have you installed the other SQL Server edition before?
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Read data from Excel and write into oracle database
Hi
I want to know how can i read data from excel and write into oracle database using java.Kindly help me out to find a solution.
Thanks and Regards
NeetaHai,
I am suggesting the solution.
I will try out and let u know soon.
Make a coma separated file from your excel file.
Assuming that your requirement allows to make a csv file.
This file may be passed as an file object to be read by java.Using JDBC you must be able to populate the data base.You can also use String Tokenizer if needed.
You do not want to go via sql Loader?
For reading the excel file itself do you want java? -
&, &&, and @s causing ORACLE Database Project issues And SLOW Run
Hello I am encountering an issue while "Run"ing functions/sp/packages from an ORACLE DATABASE PROJECT.
We are supporting a legacy application that utilizes HTP.PRINT. We decided that it would be nice to have it as an Oracle Database Project but when we save the file it is croaking at us.
We are using
ODTwithODAC1110720
Visual Studio 2008
Oracle 10g r2
The specific issue happens when an @ is the first line in the file and when utilizing && in javascript (all being emitted from HTP.Print). Now I know we can work around these limitations (escaping the &s and wrapping the line) but is there any way to get these to work in the IDE w/o the escaping and such?
For instance:
In visual Studio Create a Function1 as such
DROP FUNCTION FUNCTION1;
CREATE FUNCTION FUNCTION1 (
PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT (' if (popupStatus == 1 && okDisabled==false) {');
htp.print('
<style>
@media printfooter; {
} etc etc etc ');
RETURN PARAM1;
END FUNCTION1;
/You will get this result:
Connected.
------ Running '***\Project1\Functions\Script1.sql' @**.** ------
Function dropped.
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled:
Operation canceled by user
-- this locks the file
If I go ahead and hit OK (in a new unlocked file)
SP2-0310: unable to open file "media.sql"
Enter value for okdisabled: old 5: HTP.PRINT (' if (popupStatus == 1 && okDisabled==false) {');
new 5: HTP.PRINT (' if (popupStatus == 1 ==false) {');
**/You will notice that when the function is created it just skips the & and @s
FUNCTION FUNCTION1 (
PARAM1 IN NUMBER) RETURN NUMBER IS
BEGIN
HTP.PRINT (' if (popupStatus == 1 ==false) {');
htp.print('
<style>
} etc etc etc ');
RETURN PARAM1;
END FUNCTION1;and just a little insult to injury on this, each "run" takes upwards to 20-25 seconds from Visual studio (this is a deal breaker for us to use the tool -- when SQL Developer takes mere moments) -- is there a configuration setting awry?
So I guess the questions are these (sorry for the ramble)
1) How, in the VS 2008 IDE, can we accommdate & and && and @s without escaping/workarounds? (these work fine in developer)
a) I have noticed that the escape character work around is ONE way ... thus if I have the package body in the Oracle Database Project, add "set escape \ " then escape all of my & and && and @s it works. but... the code is saved in Oracle without the escape characters (understandable) but if it changes in Oracle then I push the changes down I lose all of my escape characters.
2) Why does each RUN take so long? working in developer & even the Server Explorer edited function are almost instantaneous.
-- I want to add, during my escape character tests EACH RUN took upwards to 30-45 seconds, so for 4 small simple test cases it was approaching 2 minutes of just save time...
so far these two shortcomings are barrier for our company to utilize these features (it's hard to try to sell the dept. on anything that doesn't handle escapes well AND -- the big AND -- takes entirely too long to save). any advise?
thnx
Edited by: tanging on Jul 1, 2010 4:47 AMwe can just set the escape character and it works fine,
set escape '~'
create or replace ....when/if we have to pull down from production level we'll have to be mindful to change & and @s to have a preceding escape character (and add the set escape to the top) --> which is a step back from SQL Developer which handles this flawlessly.
now the timing -- I believe it to be a timing issue on our network (therefore I've wasted your time). We have a default shared drive that is anything but speedy and our "default" homes in Visual Studio pointed to the shared drive. While the project/solution were on our local drives - the temp drive was the slow default. Changing that locally seems to have made the timing issue go away. (although on the first save of the body spec after the change and reboot it took 35 seconds but on subsequent runs it Ran in acceptable time limits). -
I want to add groups to my LDAP user account abc. Currently I have uid=243782(abc) gid=10(wheel) groups=1275(nsn-emp),9834(nsn-moh),10(wheel), but I want groups oinstall, oper and dba added.
According to the database installation document, local os group must include oinstall and dba.
The following local operating system groups and users are required if you are
installing Oracle Database:
■ The Oracle Inventory group (typically, oinstall)
■ The OSDBA group (typically, dba)
■ The Oracle software owner (typically, oracle)
I tried to add abc groups oinstall and dba using root user, but it failed.
Could you please inform me how to add these groups?
Thanks.
lfFolks,
Hello. Thanks a lot for replying. I do the following command: [user@localhost bin]$ wget http://localhost.localdomain:1158/em
The command returns the message:
--11:36:33-- http://localhost.localdomain:1158/em
Resolving localhost.localdomain... 127.0.0.1
Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `em'
[ <=> ] 7 --.-K/s in 0.002s
11:36:33 (4.15 KB/s) - Read error at byte 7 (Connection reset by peer).Retrying.
--11:36:34-- (try: 2) http://localhost.localdomain:1158/em
Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `em.1'
100%[=================================================================================================================>] 7 --.-K/s in 0s
11:36:34 (16.8 KB/s) - Read error at byte 7 (Connection reset by peer).Retrying.
The above message repeats again and again until finally returns the following message:
11:39:02 (40.2 KB/s) - Read error at byte 7 (Connection reset by peer).Giving up.
In browser, http://localhost.localdomain:1158/em cannot display and pop up a Windows with the message: You have chosen to open whicn is BIN file from http://localhost.localdomain:1158 What sholud FireFox do with this file ? Save to Disk ?
My question is:
I don't know how to display http://localhost.localdomain:1158/em in Browser. How to solve the issue ?
Thanks. -
Resource estimation/Sizing (i.e CPU and Memory) for Oracle database servers
Hi,
I have came across one of the requirement of Oracle database server sizing in terms of CPU and Memory requirement. Has anybody metalink notes or white paper to have basic estimation or calculation for resources (i.e CPU and RAM) on based of database size, number of concurrent connections/sessions and/or number of transactions.
I have searched lot on metalink but failed to have such, will be great help if anybody has idea on this. I'm damn sure it has to be, because to start with implementation of IT infrastructure one has to do estimation of resources aligned with IT budget.
Thanks in advance.
Mehul.You could start the other way around, if you already have a server is it sufficient for the database you want to run on it? Is there sufficient memory? Is it solely a database server (not shared)? How fast are the disks - SAN/RAID/local disk? Does it have the networking capacity (100mbps, gigabit)? How many CPUs, will there be intensive SQL? How does Oracle licensing fit into it? What type of application that will run on the database - OLTP or OLAP?
If you don't know if there is sufficient memory/CPU then profile the application based on what everyone expects, again, start with OLTP or OLAP and work your way down to the types of queries/jobs that will be run, number of concurrent users and what performance you expect/require. For an OLAP application you may want the fastest disks possible, multiple CPUs and a large SGA and PGA (2-4GB PGA?), pay a little extra for parallel server and partitioning in license fees.
This is just the start of an investigation, then you can work out what fits into your budget.
Edited by: Stellios on Sep 26, 2008 4:53 PM -
Login page user name and password for Oracle Database
Hi,
I created a login.jsp page with username,password and a submit button. How can I validate this username and password from my Oracle database username and password?
I am using NetBeans5.5 with Tomcat5.5.17. Right now I have hardcoded username and password in my persistence.xml.
Anyhelp?Thnx BalusC for ur reply. Let me explain my issue.
I have created a login page. and user is able to enter user name and passowrd on this page. User is supposed to press a 'submit' button when user enters username and password to connect to database. What should I write in 'submit' button's action to let user allow to proceed if username and password are correct i.e. username and password of my oracle database. (usename=scott and passowrd=tiger).
plz help. -
How to store the rich formated text and screendumps in Oracle database
Hi,
I will create an FAQ management system. Users can log into the system, search and view the FAQ and answers. To be intractive, the users can also create new FAQ and add the comments on FAQ answers.
The FAQ answers have rich formated text and the screendumps in the mid part of the answer. It should be presented in one page during user read/update the answers. How can I store the FAQ answer to Oracle database?
Best regards,
NingI used blob to store pictures.
The FAQ answer is the combination item of formated text and pictures. Can I use it to store?
If I decided to use blob, how can I present the FAQ answers to the web. How can I edit the answer on the web?
Thank you very much! -
How to get username and password for oracle database
i downloaded oracle database on the assumption it is free software. however when i go to the oracle homepage it says i need a user name and password. how do i get one? is it free
>
i downloaded oracle database ...Which version???
>
.. is it free...XE 10 is free all other are not
Edited by: Damir Vadas on Nov 17, 2009 3:34 PM -
Cloning and Renaming an Oracle Database
Hi All,
Can someone please tell me, in brief, the steps to;
1. Create a clone of a database?
2. Rename an existing Database?
Any help will be greatly appreciated.
Thanks in advance.Hello,
1. Create a clone of a database?
You can use RMAN Duplicate and if you have access to metalink you can find tons of documents and notes for cloning
2. Rename an existing Database?
Here is stepwise procedure to rename existing database.
1. Take full backup (RMAN, export or datapump)
2. Stepwise instructions (Windows but it should very similar for unix/linux as well).
Edit tnsnames.ora entry
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
Add new one
ODS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODS)
C:\ set ORACLE_SID=orcl
C:\>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:35:17 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
SQL> select instance_name, status from v$instance;
INSTANCE_NAME STATUS
orcl OPEN
SQL> create pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora' from spfile;
File Created
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora';
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1248116 bytes
Variable Size 67110028 bytes
Database Buffers 134217728 bytes
Redo Buffers 7139328 bytes
Database mounted.
Open a new cmd session from Start-> Run -> cmd
C:>nid TARGET=sys/whateveryourpassword@orcl DBNAME=ODS SETNAME=Y
where orcl=old database name, ODS=new database name
DBNEWID: Release 10.2.0.1.0 - Production on Sun Dec 21 20:43:33 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to database ORCL (DBID=2232941135)
Connected to server version 10.2.0
Control Files in database:
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL
C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL
Change database name of database ORCL to ODS? (Y/[N]) => Y
Proceeding with operation
Changing database name from ORCL to ODS
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - modified
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - modified
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - modified
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSTEM01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\UNDOTBS01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSAUX01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\USERS01.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEST.DBF - wrote new name
Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEMP01.DBF - wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - wrote new name
Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - wrote new name
Instance shut down
Database name changed to ODS.
Modify parameter file and generate a new password file before restarting.
Succesfully changed database name.
DBNEWID - Completed succesfully.
C:\>oradim -DELETE -SID orcl
Instance deleted.
Edit initorcl.ora file and replace "ORCL" with "ODS"
C:>oradim -new -sid ODS -intpwd mypassword -startmode AUTO -pfile 'C:\oracle\product\10.2.0\admin\ODS\initorcl.ora'
Instance created.
C:\>set ORACLE_SID=ODS
C:\>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:50:30 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initorcl.ora';
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1248116 bytes
Variable Size 67110028 bytes
Database Buffers 134217728 bytes
Redo Buffers 7139328 bytes
ORA-01103: database name 'ODS' in control file is not 'ORCL'
Note: If you don't modify initorcl.ora file and replace it with ODS, you will get ORA-01103 error.
SQL> shutdown immediate;
ORA-01507: database not mounted
Edit initorcl.ora file and replace "ORCL" with "ODS"
ORACLE instance shut down.
SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initods.ora';
ORACLE instance started.
Total System Global Area 209715200 bytes
Fixed Size 1248116 bytes
Variable Size 67110028 bytes
Database Buffers 134217728 bytes
Redo Buffers 7139328 bytes
Database mounted.
SQL>
SQL> alter database open;
Database altered.
NOte: My verification if TESTUSER exists or not after database name change
SQL> select username from dba_users;
USERNAME
SYS
SYSTEM
TESTUSER
OUTLN
MDSYS
ORDSYS
ANONYMOUS
EXFSYS
DBSNMP
WMSYS
XDB
USERNAME
ORDPLUGINS
SI_INFORMTN_SCHEMA
DIP
TSMSYS
15 rows selected.
NOte: ANother test for object existence
SQL> select table_name from dba_tables where owner='TESTUSER';
TABLE_NAME
TESTME
MY_OBJECTS
Note: Final test
SQL> select count(*) from testuser.my_objects;
COUNT(*)
38174Regards -
Database Web Services and OC4J in Oracle Database Standard Edition
Hi all,
Oracle Database Standard Edition has database web services, which require OC4J if the database is to be used as web service provider. So, can OC4J be used in production with Oracle Database Standard Edition?
Thank you for this clarification :)
MitkoYes. :)
-
How database block in forms is connecting to the oracle database
how is oracle forms connecting to oracle database?
Thru tnsnames.ora file present in c:\orant\net80\admin and c:\orant\network\admin.
Hope this helps u.
Ritika. -
Using jdk1.3.1 and connecting to oracle database
The following is my program of servlet connecting to database and viewing the data from table,
I am getting an error of SQLException caught which i wrote in my second catch block.I didn't understand what to do.Is that i have to download jdbc seperately with jdk1.3.1 or it is there in the kit.Please give me reply.I also created my dsn ,i have my odbc loaded in my pc.
Thanks
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class EmpServlet extends HttpServlet
public void init(ServletConfig sc) throws ServletException
super.init(sc);
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,
IOException
Connection con=null;
Statement st=null;
ResultSet rs=null;
res.setContentType("text/html");
PrintWriter out=res.getWriter();
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:plk","scott","tiger");
st=con.createStatement();
rs=st.executeQuery("select uname,upwd from userinfo");
out.println("<html><title>empservlet</title>");
out.println("<body>");
out.println("<ul>");
while(rs.next())
out.println("<Li>" rs.getString("uname") " " + rs.getString("upwd"));
out.println("</ul>");
out.println("</body></html>");
catch(ClassNotFoundException e)
out.println("could not load database driver");
catch(SQLException se)
out.println("sql exception caught");
finally
con.close();
}Instead of using the odbc driver to connect to the Oracle server, why don't you use the JDBC driver from Oracle?
By using the ODBC driver, you need to configure two things in addition to your Java program - ODBC setup (to setup the DSN) and also the SQLnet (to connect to the oracle server).
However, with the Oracle JDBC thin client, you just have to configure in your java program.
I hope this helps.
Maybe you are looking for
-
my ipod is disabled but when i connect it to itunes its asking me to unlock with my security number on my ipod but i cant as its disabled please help me its so stressing me out
-
I can't get a new ipad to restore to my previous ipad's last point
I bought a 3rd generation iPad.. I am trying to set it up using my ipad 2's last cloud restore, but when I try it says no backups available! Thankfully I just restored my ipad 2 so I dont lose anything right now! How do I get this new ipad to update?
-
Key-up and down triggers not firing
I have a multi-record block and want to go to the previous and next records in it when the user presses the up and down arrow keys. I thought this was default behavior, but the keys didn't do anything so I tried putting key-up and key-down triggers o
-
Hi, I have a question on ImageProducer and Image. Can I construct a java.awt.Image using a ImageProducer? I'm working on some image processing. I downloaded JIGL v1.6. JIGL has some classes to load image. However, I can't find any method to convert b
-
Please dear sirs, I want to count the lov columns, and also i want to get the column title of the lov, and i use forms 6i , i know that there is "UTL_LOV.Get_LOV_Column_Property" but i can not use this package because i use forms 6i please please hel