Database triggers VS Front end triggers
Hi All,
We have online ticket reservation application developed using oracle forms 6i and Oracle 8i database in Client server multiuser environment.
for example we have scenario like this.. AFTER INSERTING into TABLE A,
we need to UPDATE status column in TABLE B, for achieve this which is better option
To write database trigger on A,
or To write a POST INSERT trigger in the form designed uisng TABLE A.
basically the the dataentry is done through Front end only.
we are going to have upto 20 triggers of this scenario in the entire database on diffrent tables.
which is best practice? in terms of performance.
And we want to have DAY END, DAY CLOSE system, so that once we close DAY, no one allowed to insert data into few tables, for this can we use database triggers or front end check.
Thanks in advance
There isn't a confusion here between "application" meaning front-end tool, and "application" meaning "whatever layer contains your business logic" is there? I didn't mean to suggest that i thought it a good idea that business logic be implemented outside of the database, just that it ought to all be in one layer -- my own choice would be db packages, but if someone were commited to putting business logic outside of the db, then that would be the place for all the code.
Similar Messages
-
Lync 2013 updating databases after updating Front End servers
We have a front-end server pool consisting of 3 Lync 2013 servers and a back end of 2 SQL servers using SQL mirroring. All servers are Windows 2008 R2.
Following the instructions in
http://support2.microsoft.com/kb/2809243 , I verified that the servers were all ready for updates, then I ran the
Stop-CsWindowsService -Graceful cmdlet to stop the Lync services on the first FE server, then I ran LyncServerUpdateInstaller.exe to install the updates. After the updates were installed, I restarted the server, waited for Lync services
to all start, then repeated the process on the next 2 servers in turn. This was all successful.
I am now looking at step 2 in this document, applying the back-end database updates, and I have a problem and some questions. The problem is that all the databases had the principal copy on the mirrored SQL server. I ran the recommended Invoke-CsDatabaseFailover
-NewPrincipal Primary cmdlet repeatedly, using all the database types I could find, but I still have two databases (database names
xds and lis) on the mirrored server. Since the cmdlet requires a database type, what type of databases are the xds and the lis databases?
Once I get that done, I an still unsure of exactly what to run to update the databases. The KB article states to run Install-CsDatabase -ConfiguredDatabases -SqlServerFqdn FEBE.FQDN -Verbose . Do I type this in exactly
as stated, or is FEBE.FQDN a variable for our SQL server or some other entity in our environment? If I do use the actual SQL Server name in that, do I run it twice, using the name of the mirrored SQL server the second time?
Thank you very much for your help.Hi Logan Burt,
Central Management store database files
Data file or log purpose
Xds.ldf
Transaction log file for the Central Management store
Xds.mdf
Maintains the configuration of the current Lync Server 2013 topology, as defined and published by Topology Builder
Lis.mdf
Location Information service data file
Lis.ldf
Transaction log for the Location Information service data file
And you could verify if Lync Server 2013 database updates have completed successfully.
How to Verify if Lync Server 2013 Database Updates Completed Successfully
http://blogs.technet.com/b/dodeitte/archive/2013/07/02/how-to-verify-if-lync-server-2013-database-updates-completed-successfully.aspx
Best regards,
Eric -
Link to documents stored in database on flext front end
Hi,
I am a newbie to Flex.Can you please help me out with the
procedure as how I can to provide a link on flex front end screen
which when clicked opens either pdf's,ppt's,word docs from
database. I am integrating the flex with spring and hibernate
also.can you please tell me how can I connect(Flex to Java
connection) to the document in the oracle database with the
link.All the documents are stored in database.So for example if a
user clicks on a link on flex frontend screen it needs to open a
pdf file whihc is stored in database.So can you please post me the
connection details as how flex calls java and inturn java calls
backend to get the document from database.I am using flex,Spring
and hibernate frameworks for the application..
Thanks in Advance
Chandu"chandu2406" <[email protected]> wrote in
message
news:gju0i3$ov0$[email protected]..
> Hi,
>
> I am a newbie to Flex.Can you please help me out with
the procedure as how
> I
> can to provide a link on flex front end screen which
when clicked opens
> either
> pdf's,ppt's,word docs from database. I am integrating
the flex with spring
> and
> hibernate also.can you please tell me how can I
connect(Flex to Java
> connection) to the document in the oracle database with
the link.All the
> documents are stored in database.So for example if a
user clicks on a link
> on
> flex frontend screen it needs to open a pdf file whihc
is stored in
> database.So
> can you please post me the connection details as how
flex calls java and
> inturn
> java calls backend to get the document from database.I
am using
> flex,Spring and
> hibernate frameworks for the application..
Let's start with the basics:
Do you already have an understanding of how you'd perform
these steps if
Flex were not involved (i.e. some sort of static or dynamic
html page in the
browser)? -
E-business databases access like front-end of solution-beckon
Is there any site or way to connect E-business-suit to access database either it free or take any annual charges.
--thanksthanks for reply,
As you suggested web is only used to access E-business application(FRON-END) instead of database access to select data through toad or sqlplus.
Can i get database connection to view tables etc.
thanks -
MYSQL as front-end to MS Access via LabView
Hello members,
There is a part in my project where a program writes to a MS Access database (DB). I want to be able to take this Access DB and use it to update a MySQL DB using LabView. I have already created the DB in MySQL with exactly the same structure as the DB in MS Access. Basically, what I am trying to do is that every time the MS Access DB is updated I want to be able to post-run a VI to update the MySQL DB. So MySQL DB is my front-end for MS Access. I have the data connectivity package and I have tried couple things but in vain. I can insert data into MySQLDB but I have not been able to update a specific existing column in a specific existing table. I have searched online too for possible ways to do it and most discussions/ solutions are for MS Access to be the front-end for MySQL (I need the opposite to be working). Some other discussions were for migrating MS Access to MySQL, but it is not what we are trying to do. The MS Access DB will always be there. I do have all permissions to read/write to both DB.
I will appreciate any suggestions or input you may be able to provide or if there is a better/ efficient way to do it.Based on your description I don't see how either database is a "front-end" to either one. It sounds to me like you are updating the two databases in parallel. For it to be a "front-end" MySQL would need to update the Access database directly, not LabVIEW. So LabVIEW would know nothing about the Access database. This means all the work would be inside of MySQL (such as with triggers on table updates and insertions, which I'm not sure if MySQL even has).
I don't understand your statement about being unable to update a specific existing column in a specific existing table. What exactly are you trying? What VIs are you using? What are your inputs? Can you post your code and a quick overview of your schema? -
To avoid writing database code in the front end
Hello,
I am working on a database application using 10g database as backend and dotnet as front end. I wish to execute only oracle stored procedure for all the select (to avoid hard parse and use of bind variable), DDL and DML operations; just to avoid writing database code in the front end. Can anyone please give me a little examples of :
1.Select query's output to be return as resultset by stored procedure.
2.DML example by stored procedure.
3.Any DDL example by stored procedure.
using scott.emp, so that i would just call the stored procedure, rather than giving select,DML and/or DDL commands in the front end. Even though i have read in the documentation, but a clear cut examples will help me to get into clear concept as well.
Thanks & Regards
Girish SharmaHi...
-->Select example
create or replace procedure get_emp(rc out sys_refcursor)
is
begin
open rc for select * from emp;
end;
-->DML example
create or replace procedure do_dml_emp(pempid in number,
pempname varchar2,
result out number)
is
begin
insert into emp(empid,empname) values(pempid,pempname) returning empid into result;
exception
when others then
result:=-1;
end;
-->DDL example
create or replace procedure ddl_emp(colname varchar2,
coltype varchar2,
result out number)
is
begin
result:=-1;
execute immediate 'alter table emp add column ' || colname || ' ' || coltype ;
result:=1;
end; -
Can we use TCL commands in database triggers?
Hi,
GoodDay, This is Ramesh. Please let me know that, can we use TCL (Commit, Rollback & Savepoint) commands in our[b] DATABASE triggers? If so how..?
Regards,
Ramesh.Hi Ramesh, you're in the wrong forum; SQL Developer is a tool. Try SQL And PL/SQL...
Regards,
K. -
Can i use java only for database transaction with vb as a front end
Hello All.
I am sorry,i don't know whether this location is the correct location to post my question or not
I have developed one application using complete vb only. That is completly desktop appliation and not suitable for centralized database. Is there any facility to keep my front end as same (vb application) and for the database transaction can i use jdbc? Is there any possibility to do that like View is vb based application and the database connectivity is only jdbc
If my thought is wrongplease execuse me.
thanks in advance
sowjanyaSounds like a really bad choice even if it was possible.
-
How to place an image in database and how to retrieve and display it in the front end
how to place an image in database and how to retrieve and display it in the front end
and to place an image in database and retrieve the image from database using xml
please,help me out.Create a table with a Long RAW Datatype column for storing the Image Column Data.
Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
A save on the form saves the image in the Image item in the long raw column. -
Hello there, I am creating a database of all our companies press contacts. I would like to create a form that would act as the front end and feed the database which is obviously the back end. The database is in Access 2013. My question is to whether this is indeed possible?
This forum thread appears to point towards the problem.
Re: Unable to Switch Audio Sync Settings -
Connect String for the front end app to access Lite Database in the Client
Hi,
I have been using an app developed in VB.net for accessing the Oracle Lite Database from the client machine. Can anyone please help me out how to set the Connect String in the config file of my front end app to access the Oracle Lite Database from my client machine. Do anyone have the syntax of the connect string to access the lite database in client machine.
Thanks a lot in advance.Hi...
-->Select example
create or replace procedure get_emp(rc out sys_refcursor)
is
begin
open rc for select * from emp;
end;
-->DML example
create or replace procedure do_dml_emp(pempid in number,
pempname varchar2,
result out number)
is
begin
insert into emp(empid,empname) values(pempid,pempname) returning empid into result;
exception
when others then
result:=-1;
end;
-->DDL example
create or replace procedure ddl_emp(colname varchar2,
coltype varchar2,
result out number)
is
begin
result:=-1;
execute immediate 'alter table emp add column ' || colname || ' ' || coltype ;
result:=1;
end; -
Front End to Oracle Database - Advice Needed
Hi
My company has recently purchased an Oracle Database. Are there any advantages in creating the front end in Oracle as opposed to writing the front end in Java.
I am interested to know if one method is preferred over the other. I was planning on writing it entirely in Java.
Any help or advice would be appreciated.
Thanks
Kellyhttp://www.tuxedo.org/~esr/faqs/smart-questions.html#ASKING
pls don't crosspost
http://forums.java.sun.com/thread.jsp?thread=243868&forum=31&message=892346
http://forums.java.sun.com/thread.jsp?thread=243869&forum=48&message=892352 -
Removing admin password form Access 2003 database front end and back end
We have a legacy database that has been passed down from the original creator, who is no longer with the organization. It was created in Access 2003. It has a front end and a back end. The original admin password can not be located and we are in the process
of upgrading this application to 2010. Is there a way to remove that password so we can make changes to the original files?Hi,
What password are you talking about, the one created with the workgroup manager? That will be difficult since 2010 doesn't have the workgroup manager anymore. You can still use the database in the 2010 environment but you can't make any changes to the original
database without the password.
Maurice -
How to create database triggers in ABAP Dictionary
Hi,
How can i create database triggers on tables, like the update, delete and insert triggers which we used to create in SQL sever and other databases, is there any transaction for doing the same from ABAP dictionary. or should it be done at the raw database level.
Thanks
Akila.RHi,
please check out the following link it might help you
http://help.sap.com/saphelp_nw2004s/helpdata/en/71/a8a77955bc11d194aa0000e8353423/content.htm
*************please reward points if the information is helpful to you****************** -
Error running utility "Maintain database triggers to circumvent mut tab"
Hi,
I succesfully runned the utility to create the table package, but when running the database triggers utility I receive:
Message
Activity aborted with ORACLE internal errors.
-6502 ORA-06502: PL/SQL: numeric or value error: number precision too large
I tried on a smaller table and that one is running ok. Is there a maximum on e.g. columns to have the utility work proper?
Or is there perhaps the column_name what can be the problem?
Regards
Jessica
nullJessica,
It sounds like bug 897808 (HSDUTL). It should be fixed in Headstart 2.1.2 patch 11. Are you sure you installed this? Note that installing patch 12 doesn't install patch 11.
If this is indeed the problem you are running into, the offending statement is located in the package HSU_CCMR (revision 2.1.0.2). Within the procedure add_block the variable l_number_of_lines is declared as a number(2), this should be changed to a number(3).
Kind Regards,
Peter
Maybe you are looking for
-
Select query problem in JDBC sender adapter
Hello Experts, We have a problem with PI sender adapter that PI has started to miss records in database some database records are missing and we are using the below selet query : SELECT * FROM [database name].[dbo].[Material_Movement] WHERE [Process_
-
That is basically a summary of the problem The Dell Inspiron 3847 does not come with RAID, so I tried installing a PCI-express 1x RAID card. However, the RAID BIOS never shows up. The HDDs show up when I install the RAID controller driver in Windows
-
Problem while automatic creation of measuring document
Hello everyone, my client requirement is to track the usage hours of the PRT used for maintenace order. i have created the PRT as equipment with category P and assigned measuring point(counter) in the default values. Then the PRT is assigned in the o
-
Command line for Acrobat Reader
Hello In an application in VB.NET, I throw open a PDF file using the reading program by default in Windows Is there a command line that can be open it without the left column? Thank you for your response Claude Azoulai
-
Hi all, I want to know the functionality of Invoice Parking and Invoice Posting. Can anyone explain me this concept? Also, what is the use of the BAPI_INCOMINGINVOICE_PARK and BAPI_INCOMINGINVOICE_CREATE f