Cascade or delete in database server, why if my EJB do it for me??
Hi,
I am in design phase of a database for my j2EE application. In the database desing i have some relationships entities, that have foreign keys. I have several options about foreign keys in the relationships, cascade deletes, restrict .... all in my database server.
But, when i am reading the referencial integrity of the entity EJBs CMP relationships, the entity beans make the cascade deletes automaticaly for maintain the relationsships.
Need i make my relationships in my database server with cascade delete options or leave it for my application server???
Another one, if i make relationships in my database server, why i need do it in my entity beans???
tanks, sorry for my poor english
Hi Markus,
Tanks for your answer, if this tip only for entity beans with CMP???
For example, if i have some entity beans, one with CMP and other with JDO, or for example, an entity beans that use CMP and JDO for access to few tables (i dont know that it is possible or it a good design), how can i design the relationships update/delete cascades in my database server, all entity beans persistence types support his referencial integrity ?? if this if true i think that i forget the relationships updates/deletes cascades in my database server.
At this moment, i dont know what type of persistence i will use in my application server. I dont undertand yet wath approach i must follow, i design my database and after design my entity beans over this database or i must foget my database and beging with entity beans design first .... i have a big problem, i need read a lot of more.
Something for help me???
Very, very thanks
Similar Messages
-
Systimestamp value in different timezoon database server
Hi Experts,
There is a SQL (select systimestamp from dual; )
If we run above sql between PST and EST two different timezone database serves at same time, does SQL return different value from systimestamp?
if return same value from different timezone database server, why?
Please explaining!
Thanks
Jimhttp://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions173.htm#SQLRF06125
SYSTIMESTAMP returns the system date, including fractional seconds and time zone, of the system on which the database resides. The return type is TIMESTAMP WITH TIME ZONE.systimestamp returns database server OS's timezone.
if server is in PST systimestamp will return PST.
if server is EST systimestamp will use EST. -
Reading text file from database server in OA Page
Hi Guys,
I am trying to embed an applet with in an OA Page. The applet is used to mainly for showing Gantt chart. I have to pass my connection details from OA Page to applet, I dont pass directly the connection details to the applet so i am placing all the server details, user name and password in a text file on the database server.
So from the OA Page i have to read the contents of the file on the database server and pass them to the applet using the <PARAM> tag. My question is how to read the text file from the database server.Any Inputs?
Thanks in advance for your help.
Regards,
Nagesh Manda.If the file to be read is on the database, then it makes sense to use the pl/sql code to read the file. Make a call to this pl/sql code from page controller to get back the values.
--Shiv -
BODS - database server hardware configurations
Hi,
Can some one let me know what is the minmum hardware requirement for database server for BODSThere is no minimum requirement for "database server" for BODS. Apart from repositories, which can easily be hosted on a local instance of MySQL or SQL Server Express (at least during dev), and apart from the need for a database for the BIP database in BODS ver. 4, BODS can run w/o "database server" if, say, all you wanted it for was to sling text files around. There are minimum hardware requirements for BODS job servers and clients. Please refer to the [SAP product availability matrix (PAM)|http://service.sap.com/PAM] for hardware requirements.
-
Delete a database from a server in Business Process Architect
Hi Friends,
Does anybody know how to delete a database from a server in Business Process Architect? I don't see any option to perform delete. I am using version 10.1.3.4.
Thanks
TridibThanks for reply
Actually i want to delete the jobs from the Url below
http://xyz:7778/reports/rwservlet/showjobs?server=testreport which gives all the jobs when u click on anyone job it open the pdf file which is stored in cache i want this job to be deleted including the file.
I think there is a target.xml file which show the job in IAS OEM for a report server if the report server is added in target.xml from oem we can delete the jobid and file.
where should i go to see the report server in oem?
Regards -
Why site database server for Central Admin site not accessible?
Hello everyone,
I've this issue where; when connecting a primary site to existing central administration site; setup prerequisite checker
continue to notify it cannot establish connection to SQL server having central administration site database. The SQL server
having central site database is installed locally on the server central administration site is hosted on. Both servers
(central administration site server, the new server to host child primary site required to join that central administration
site) having following configuration:
A. Central Administration site server, with site database server installed locally:
Name: HQCAS
OS: WS 2008 R2 SP1, fully patched.
SQL Server: SQL Server 2008 R2 with SP2. Correct required SQL server collation set supported by CM2012.
SQL Server named instance: CASDB
Local firewall ports opened: 1433, 4022 (via inbound rules created in group policy, same GPO applies to primary site
server)
SQL Server broker service Enabled: True.
TCP/IP: All dynamic ports left blank to support static port 1433.Static port 1433 configured for all IPs.
IP Address: 10.1.1.250/8
Local SAM: Both server computer accounts added to local 'Administrators' group on both servers.
Domain service account: svcCASDB
SPNs registered: 2x, one for HQCAS hostname on instance CASDB on port 1433, second for FQDN for HQCAS on instance
CASDB on port 1433.
SQL Server Logins: Security group containing both computer accounts for HQCAS & STPRS. Both account having sysadmin SQL
server role assigned.
SQL Server browser service running.
B. Primary site server, with SQL server installed locally: to join HQCAS CM2012 hierarchy:
Name: STPRS
OS: WS 2008 R2 SP1, fully patched.
SQL Server: SQL Server 2008 R2 with SP2. Correct required SQL server collation set supported by CM2012.
SQL Server named instance: CM12PRIMARY
Local firewall ports opened: 1433, 4022 (via inbound rules created in group policy, same GPO applies to central
administration site server)
SQL Server broker service Enabled: True.
TCP/IP: All dynamic ports left blank to support static port 1433.Static port 1433 configured for all IPs.
IP Address: 172.168.1.250/16
Local SAM: Both server computer accounts added to local 'Administrators' group on both servers.
Domain service account: svcCASDB
SPNs registered: 2x, one for STPRS hostname on instance CM12PRIMARY on port 1433, second for FQDN for STPRS on
instance CM12PRIMARY on port 1433.
SQL Server Logins: Security group containing both computer accounts for HQCAS & STPRS. Both account having sysadmin SQL
server role assigned.
SQL Server browser service running.
Tests performed:
Telnet to/from both HQCAS/STPRS on ports 1433, 4022 establishes connection. Please help
Hello friends,
My finding it finally is....there wasn't any configuration issue as I mentioned above.
I'm using an evaluation edition of SQL Server 2008 R2; it just allows default instance (MSSQLSERVER) to be used, not a named instance.
The confirming test for this was...I re-installed SQL Server with all the same settings except changing from a named instance to default; once I finished applying service pack 3. I could initiate WSUS 3.0 SP2 x64 setup and point it to use this SQL server.
WSUS setup completed without any errors. This was not happening when named instance was all configured properly. It was just not accessible from outside.
Well this is what my finding is. For lab environment of CM2012 it suffices the need.
Regards,
Shahzad. -
HT3228 Why is mail not deleted from the server?
I receive mail onto my ipad - and want the settings to be such that if I delete it from my ipad inbox it is deleted from the server,
I have the advanced settings on the ipad saying -Delete from server - when removed from inbox - but it is not working - please help?
I want it this way so things I need to keep can be saved on my home PC - but things I want to read / action / delete can be done from my ipad and then deleted.
I keep about 10% of mail onto my PC.
Also confused as this used to work.....Settings >> mail,contacts,calenders >> your email >> mail days to sync ( choose whats the best for you )
-
Why is all of my email being deleted from the server?
Hi Everyone!
I am using an iPad Air 2, iOS version 8.1.2 (still have to perform the current update). When I download email from my ISP, Comcast, it gets deleted from their server. This never happened with my 2nd Generation iPad.
I go to settings>Mail>accounts>advanced - and under the Incoming settings, I don't have an option for "delete from server" where I am supposed to select "never". Instead, it has "IMAP Path Prefix / "
How do I fix this so my email stays on the server? I like to check my email using my ipad and iphone, but I prefer saving it on my desktop PC but I can't do this because when my email is downloaded into the ipad, it gets deleted from Comcast's servers.
Any help would be appreciated.
Thank you!
VitaActually, it had to do with Comcast, not the iPad. The default for Comcast is IMAP, and that is based on the information they have available when the account goes into verification. It verifies an IMAP account, and since you have not migrated to the IMAP account, you were having problems. It isn't something anyone can fix, except you. It would not ask you at the beginning if you wanted IMAP or POP, it has to do with the mail provider's verification settings, which is a Comcast issue, but because they are providing IMAP now, it defaults to that. If you are still using POP, you have to force the mail app to get there, which is what I provided you the instructions for. Apple is not going to fix anything, because there is nothing for them to fix.
Either way, you got it fixed and that is all it takes. As a Comcast customer, I was aware of this, since I had migrated to IMAP already. -
Database Server - SQL Access: Cannot connect from code but from SSMS
Hi,
I am using following connection string in my asp.net web.config:
[Less than symbol] add name="FMMConnectionString" connectionString="Data Source=xxxxxxxxx,1234;Initial Catalog=Test1Db;User Id=Rajeev;Password=xxxxxxxxxxxxx;" providerName="System.Data.SqlClient" [Slash][Greater than symbol]
The database is on remote database server. The sql user/ developer 'Rajeev' is deliberately given restricted permissions (to protect our schema) using following sql commands:
GRANT ALTER,EXECUTE, SELECT,INSERT,UPDATE,DELETE ON SCHEMA ::dbo TO Rajeev
DENY VIEW DEFINITION ON SCHEMA::dbo TO Rajeev;
GRANT CREATE PROCEDURE TO Rajeev;
GRANT CREATE FUNCTION TO Rajeev;
DENY ALTER ON SCHEMA::dbo TO Rajeev; -- To disallow Rajeev to create objects on dbo schema but only create in Rajeev schema while still being able to select, insert, execute on dbo schema.
The above connection string works perfectly fine when used from Visual Studio> Server Explorer. I am able to execute following sql queries without issues. Same is true when using SQL Server Management Studio using Rajeev credentials.
select top 100 * from XYZEmployees
execute usp_GetMMBSchemeDetails '1'
The error I get in web page is following:
The stored procedure 'usp_GetMMBSchemeDetails' doesn't exist.
When I ran code using breakpoints to see what is happening, I see that when connection object is being instantiated, the connection state is being closed with following error:
at System.Data.SqlClient.SqlConnection.GetOpenConnection()
at System.Data.SqlClient.SqlConnection.get_ServerVersion()
I turned off my firewall to see if it was blocking but it did not help. I tried using Visual Studio 2012 as well as Visual Studio 2013 but same issue showed up.
Kindly let me know why I am able to execute sql queries from SSMS and Visual Studio's Server Explorer but not from application code. Is there something that needs to be enabled on remote database server so that the queries can run from code? I like to create
more users like Rajeev with restricted permissions to develop my application. So kindly provide a solution if you know.
Thanks,
PulletThanks Everyone for your insights :)
RSingh, Your approach works when using SSMS, not when called from application code (example: asp.net code-behind page calling a stored proc using connection object).
My requirement is, I only wanted developer to do front end programming without having the ability to look at backend sql objects definitions. He/she can call the sql objects in the program as needed.
I am able to finally solve this requirement by following approach. Hope it helps others.
1. Right-click Rajeev user in Database> Security>Users and unselect 'dbowner' from 'General' tab> 'Database Role Membership' section even though Default Schema shows up as Rajeev schema. Now, this user can't do anything on dbo schema of database
(as well as in any other user's schema in this database).
2. Ran above commands but excluded following command which was identified as root-cause.
DENY VIEW DEFINITION ON SCHEMA::dbo TO Rajeev;
3. Now ran a script that denies 'view definition' of dbo schema's tables. It loops through all tables and denies 'view definition' on each table. Adapted the script of http://blog.extreme-advice.com/2013/01/23/grant-view-defination-permission-to-all-stored-procedures-in-sql-server/.
Now, the user Rajeev can execute dbo schema objects both from SSMS as well as from application code.
4. DENY EXECUTE, SELECT ON SCHEMA::INFORMATION_SCHEMA TO Rajeev; -- Restricts Rajeev from executing INFORMATION_SCHEMA objects seen in SSMS.
However one remaining open item is, I could not hide the system objects (which are part of sys schema) in SSMS. Ideally, I do not want Rajeev to execute the 'system views', 'system stored procedures', etc. When I execute same command (below command), it
runs without errors but does not apply this restriction.
DENY EXECUTE, SELECT ON SCHEMA::sys TO Rajeev;
If you know the reason why it is happening like this, please kindly share.
Cheers,
Pullet
Cheers | Pullet -
Migration Microsoft SQL Sever 2005 to Oracle 11g cascade on delete problem
Hi, I'm trying to migrate a sql server 2005 database to oracle 11g version with the lastest version of Oracle SQL Developer. All works fine but there is a little thing that I can't migrate. I have a few tables in the sql server database that has cascade on delete but I can't migrate this through Oracle Sql Developer.
I know that Oracle database server supports it, then I can manually change the resulting database creation sql script but I'd like to know how I can do it with Oracle Sql Developer.
Thanks in advance :)Hello,
sorry for the delay.
Even after some more research I couldn't find this problem described anywhere. I can confirm your observations, the problem is easy to reproduce. Thus I reported it to SQL Developer development as this looks like a bug.
One workaround is to edit the generated DDL script and to add the ON DELETE CASCADE clause to the ALTER TABLE statement. If you don't like that: apply the scripts as they are and finish the migration. Then, in SQL Developer, right-click the table in your Oracle RDBMS schema, and click on Edit. In the pop-up window, select "Foreign Key". Then, in the lower right corner, there appears a small scroll-down menu where you can change the delete option from RESTRICT to CASCADE.
Best regards
Wolfgang -
Hi everybody,
on this forum i cannot find a procedure to manually delete a DB.
I've got 2 database installed on a Linux server and i'd like to get rid of one..
What can I do to completely delete a database?
I haven't got any utilities (like dbca)..
Hope somebody can help me, thanks in advance!You have not said why you need to manually delete it. Also you did not state your Oracle release.
You can use DROP DATABASE command. This will drop the database, deletes all control files and all datafiles. If you are using spfile, it will delete it. Archivelogs and Backups are not deleted with this command, but you can then use RMAN or your Operating System command to delete all archivelogs and backups where required.
e.g
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP MOUNT;
SQL> DROP DATABASE; -
Runtime Repository on local database server only
This is a why question, as I have read the installation and configuration guides and don't see this answer. Please forgive me if I've overlooked it.
I am installing OWB in a client/server fashion; the database server resides on a UNIX platform, the client on Windows. I ran the OWB Repository Assistant from my windows desktop, and the repository owner and its objects were created. However, I see in the manual that the OWB Runtime Assistant must run on the same machine where the database resides. I did so, started up the Runtime Assistant on UNIX and created the Runtime Repository into a new user schema, and then a Runtime Access user. All went well.
It looks to me as if both of these wizards create database objects. Why can the Repository Assistant be executed from the desktop environment, but the Runtime Assistant needs to be executed where the database lives, in my case, UNIX. It seems that only database objects are created, it shouldn't matter where the wizard is run from, as long as a database connection can be made.
I feel like I'm missing a piece of the puzzle, can anyone enlighten me. Perhaps a daemon or service is started that I need to know about?Perhaps a daemon or service is started that I need to know about?That's it! There are some java-services running outside the database. That's e.g. the reason why you can't deploy to an OS/390 system, because these services are not migrated for this JVM yet.
Bye
Detlef
Message was edited by:
289512 -
"Delete messages from server" Mail iPhone 5
Hi, I am trying to locate "delete messages from server" option in Mail Settings on iPhone 5 and can't find it. In iPhone 4 it was just in the Advanced settings but it is not there in iPhone 5. Help please? Thanks
Not sure who your email provider is. Mine is hotmail. When you set up email with hotmail on an iPhone 4 the delete from server never is available. I just got an iPhone 5, i reset up my hot mail account and can't find that setting either. I set it up by using the hotmail button not "other" so meaning delete your hotmail account from your phone. Then re set it up. But when you do add email account, don't use the button that says hotmail. Use the bottom choice that says "other". I have no idea why this is different but if you do this it will set up hotmail just the same. But now that setting is there. The "delete from server" and you set it to "never". Now when you delete the emails from your hot mail account on the iPhone, it leaves that email on the hotmail server. So when you look at email on the computer it's there still. It's good this way if you share email with someone.
-
How to FTP a file from client machine to database server using forms 10g
Hi
I want to ftp a file from a client machine to the database server machine using forms 10G (or PL/SQL).
could you please tell me how can I do this
Regardshi
How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running, using WebUtil 1.06.
Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
Feel free to copy this note to a text editor, and do a global find/replace on
Oracle_Home with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.
1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
2) Copy or move jacob.jar and jacob.dll
C:\webutile is the folder where you extracted Jacob, and will end in ...\jacob_18
cd C:\webutile
copy jacob.jar Oracle_Home\forms\java\.
copy jacob.dll Oracle_Home\forms\webutil\.
The Jacob staging area is no longer needed, and may be deleted.
3) Sign frmwebutil.jar and jacob.jar
Open a DOS command prompt.
Add Oracle_Home\jdk\bin to the PATH:
set PATH=Oracle_Home\jdk\bin;%PATH%
Sign the files, and check the output for success:
Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\frmwebutil.jar
Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\jacob.jar
4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open Oracle_Home\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.
Start SQL*Plus as SYSTEM, and issue:
CREATE USER webutil IDENTIFIED BY [password]
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/webutil@rcci
@Oracle_Home\forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
Reconnect as SYSTEM, and issue:
grant execute on webutil_db to public;
5) Modify Oracle_Home\forms\server\default.env, and append Oracle_Home\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Modify Oracle_Home\forms\server\formsweb.cfg insde [default] add :
archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
archive=frmall.jar
also add :
[webutil]
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar
WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
archive=frmwebutil.jar,f90all.jar
lookAndFeel=oracle
7) Modify Oracle_Home\forms\server\webutil.cfg and add :
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
8) Start the OC4J instance
9) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
It is important to generate the PLX, to avoid the FRM-40039 discussed in Note 303682.1
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
10) Create a new FMB.
Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
There is no need to Subclass the WebutilConfig object.
Attach the Webutil.pll Library, and remove the path.
Add an ON-LOGON trigger with the code
NULL;
to avoid having to connect to an RDBMS (optional).
Create a new button on a new canvas, with the code
show_webutil_information (TRUE);
in a WHEN-BUTTON-PRESSED trigger.
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
11) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil
12) Run your form. -
Hi Experts,
IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan for Daily/weekly??
Vinai Kumar GandlaHi Vikki,
Many systems rely solely on SQL Server to update statistics automatically(AUTO UPDATE STATISTICS enabled), however, based on my research, large tables, tables with uneven data distributions, tables with ever-increasing keys and tables that have significant
changes in distribution often require manual statistics updates as the following explanation.
1.If a table is very big, then waiting for 20% of rows to change before SQL Server automatically updates the statistics could mean that millions of rows are modified, added or removed before it happens. Depending on the workload patterns and the data,
this could mean the optimizer is choosing a substandard execution plans long before SQL Server reaches the threshold where it invalidates statistics for a table and starts to update them automatically. In such cases, you might consider updating statistics
manually for those tables on a defined schedule (while leaving AUTO UPDATE STATISTICS enabled so that SQL Server continues to maintain statistics for other tables).
2.In cases where you know data distribution in a column is "skewed", it may be necessary to update statistics manually with a full sample, or create a set of filtered statistics in order to generate query plans of good quality. Remember,
however, that sampling with FULLSCAN can be costly for larger tables, and must be done so as not to affect production performance.
3.It is quite common to see an ascending key, such as an IDENTITY or date/time data types, used as the leading column in an index. In such cases, the statistic for the key rarely matches the actual data, unless we update the Statistic manually after
every insert.
So in the case above, we could perform manual statistics updates by
creating a maintenance plan that will run the UPDATE STATISTICS command, and update statistics on a regular schedule. For more information about the process, please refer to the article:
https://www.simple-talk.com/sql/performance/managing-sql-server-statistics/
Regards,
Michelle Li
Maybe you are looking for
-
Looking for a kind of Google Maps plugin
Hi everybody, I saw lot of tutorials about HoudahGeos Google Maps integration with Lightroom for Mac users. And i'm looking, for a while, to the same functionality for PC users. I do not own a camera with builtin GPS support or even an external track
-
How to copy a column value in to a variable in Dataflow task?
Hi All, I want to copy a column value to a variable inside the data flow task. Which is the best way to achieve it in SSIS? Thanks, Sri
-
Qosmio F45 - DVD and CD ejecting issue
I have a Toshiba Qosmio F45 and when I got the computer in september it had a problem of not warning to read or write to certain disks. Now it's getting worse to the point where when I insert a disk. It spits it out not reading from it at all. The dr
-
Display Title key in drop-down for Business Partners
Hello Experts, the "Title" drop-down list in a cusutomer or contact person does not show the keys (eg 0001, 0002 . etc.). It only shows the description (eg MIster, Mrs, Ms. etc.). I have activated "show keys in all drop-down lists" in my Options menu
-
Hello, I restored my Iphone, and I made sure that all of my stuff was backed up into the Cloud. but now when i plug it into Itunes its like a brand iPhone PLZ help! Its an Iphone 4. I look ed on the account info and everything is right plz help!