Monday, March 20, 2017

how to hide drop Table in Cat list in oracle 10g

New Command of Oracle 10g:

Purge is useful in oracle 10g when you want to really truly drop a table in oracle 10g table can be undropped. for example in sql
SQL> desc t;
it show name type etc   x     null      varchar2(2000)      now you want to drop this table by
SQL> drop table t;
table dropped.
SQL> desc t;
object  t does not exist ;
SQL> flashback table t to before drop;
flashback complete.
SQL> desc t;
show table  t like   x    null   varchar2(2000)
SQL> select object_name from recyclebin;
object_name   Bin$totcup302.... after flashback

Now everything you drop a table, we just hide it not really drooped same with index etc.
SQL>drop table t purge;
table drooped and not show in object list.


Friday, March 10, 2017

Useful query for Accounts Ledger Report in Oracle


select a.account_id,a.account_name,a.voucher_date, a.DOC_TYPE_ID
  ,a.VOUCHER_NO,b.debit,b.credit,b.narration from
(
select a.account_id ,sum(b.debit)-sum(b.credit) open from
(
select a.account_id,b.debit,b.credit
from voucher_dtl b,voucher_mst a
where a.account_id=:account_id
AND DOC_TYPE_ID='JV'
union all
select a.account_id ,b,debit,b.credit from voucher_mst a,voucher_dtl b
where DOC_TYPE_ID='JV'
)
group by account_id
)a
,
(SELECT a.voucher_date, a.VOUCHER_NO,
a.DOC_TYPE_ID , ACCOUNT_ID, A.ACCOUNT_NAME,
(B.DEBIT) DEBIT, B.NARRATION, (B.CREDIT) CREDITt
FROM voucher_mst a,voucher_dtl b
where ACCOUNT_ID=:ACCOUNT_ID
AND DOC_TYPE_ID='JV'
and
(DEBIT>0
or
CREDIT>0
)

)b,
(
select account_code ,sum(dr_amount)-sum(cr_Amount) due from
(
select account_code,dr_Amount,cr_amount
from MATRIX.journal
where account_code=:accounts
and cDate<=:date_2
AND decode(:STATUS,'ORIGINAL',o_r,'IT',I_T,'GST',G_T)='YES'
AND decode(:ORG,'ALL','ALL',COMPANY)=:ORG
and voucher_type<>'Open'
union all
select account_code ,dr_Amount,cr_amount from MATRIX.journal
where voucher_type='Open'
AND decode(:STATUS,'ORIGINAL',o_r,'IT',I_T,'GST',G_T)='YES'
AND decode(:ORG,'ALL','ALL',COMPANY)=:ORG
and account_code=:accounts
)
group by account_code
)c,MATRIX.ledger
where a.account_code=b.account_code(+)
and a.account_code=c.account_code(+)
and a.account_Code=ledger.accountid

order by cdate

Useful Loops for Oracle Developer


BEGIN
    GO_BLOCK('MY_BLOCK');
    FIRST_RECORD;
    LOOP
    MESSAGE(:MY_BLOCK.DSP_NAME);
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;          
    END LOOP;  
END;

---------------------------------------------------------------
DECLARE
   /* All the jobs in the Fall to prepare for the Winter */
   CURSOR fall_jobs_cur
   IS
      SELECT task, expected_hours, tools_required, do_it_yourself_flag
        FROM winterize
       WHERE year = TO_CHAR (SYSDATE, 'YYYY')
         AND completed_flag = 'NOTYET'
       FOR UPDATE OF task;
BEGIN
   /* For each job fetched by the cursor... */
   FOR job_rec IN fall_jobs_cur
   LOOP
      IF job_rec.do_it_yourself_flag = 'YOUCANDOIT'
      THEN
         /*
         || I have found my next job. Assign it to myself (like someone
         || is going to do it!) and then commit the changes.
         */
         UPDATE winterize SET responsible = 'STEVEN'
          WHERE task = job_rec.task
            AND year = TO_CHAR (SYSDATE, 'YYYY');
         COMMIT;
      END IF;
   END LOOP;
END;
-----------------------------------------------------------

This is possible. In when validate record you write like this,

declare
v_rec_no number;
begin
if :system.cursor_record > 1 then
v_rec_no = :system.cursor_record ;
first_record;
for i in 1 to v_rec_no loop
< your validation>
.....
.....
next_record;
end loop;
end; 

Sunday, July 12, 2015

SkypeContactsView utility displays the list of all Skype contacts stored in the local database file of Skype

SkypeContactsView is a new tool that displays the list of all Skype contacts stored in the local database file of Skype. For each contact, one or more of the following fields are displayed: Skype Name, Full Name, Display Name, Gender, ID, Birthday, Profile Time, Last Online Time, Last Used Time, Phone, Emails, and more...
SkypeContactsView also allows you to export the contacts list into text/tab-delimited/comma-delimited/xml/html file, or copy them to the clipboard and then paste them into Excel or other spreadsheet application.

Thursday, July 2, 2015

Forms Triggers in ORACLE

Trigger is collection of SQL , PL/SQL and Form coding statements executed based on the event.
Triggers are executed automatically at run time based on an event.
Triggers can be created in three levels.
1. Form level triggers
2. Block level triggers
3. Item level triggers

Form Level Triggers

Block Level Triggers


Item Level Triggers

Other Triggers



Thursday, June 18, 2015

Loops Examples in PL/SQL in very easy way

LOOPS      = ONE STATEMENT REPEAT MORE TIME

 1. BASIC LOOP  2. WHILE LOOP   3. FOR LOOP

  DECLARE
  A NUMBER:=0;
  BEGIN
  LOOP
  A:=A+1;
  EXIT WHEN A > 10;
  DBMS_OUTPUT.PUT_LINE(A);
  END LOOP;
  END;

 1
 2
 3
--------------------------------------------------------------------
 DECLARE
 A NUMBER:=0;
 BEGIN
 WHILE A < 10 LOOP
 A:=A+1;
 DBMS_OUTPUT.PUT_LINE(A);
 END LOOP;
 END;

1
2
3.....
---------------------------------------------------------------------
 BEGIN
 FOR A IN 1..10 LOOP
 DBMS_OUTPUT.PUT_LINE(A);
 END LOOP;
 END;

1
2
3.........

Tuesday, June 9, 2015

Newly Released EpiServer CMS

EPiServer CMS is the EPiServer platform for web content management, allowing you to develop flexible solutions providing outstanding customer experiences.
The EPiServer architecture with CMS is open and flexible and built for customization and extension, for instance with Commerce and Find. The platform provides many built-in features, as well as a set of ready-made content types, base classses and properties, to speed up development.
Top performance is an essential driver for increasing conversion rates on websites. EPiServer is designed to be robust and flexible, and to scale easily as business grows. The EPiServer solution simplifies proper configuration of software components. Performance optimization areas include configuration of common caching schemes, along with appropriate hardware and secured data delivery.


Saturday, May 30, 2015

Developing Web Application With Oracle ADF

How to build a rich Web application that interacts with a database. You'll be using Oracle JDeveloper 11g Version 11.1.2 and the Oracle ADF framework to build the application, and in the process you'll work with Oracle ADF Business Components, Oracle ADF Faces Rich Client Components and Oracle ADF Task Flows.
When you work in JDeveloper, you organize your work in projects within an application. JDeveloper provides several template applications that you can use when creating an application and projects. The template applications are pre-configured with a basic set of technologies that are needed for developing the various types of applications, and you create your working environment by selecting the template that best fits your needs. You can then configure it to add any other technologies you plan to use.
You are going to create a new Fusion Web application and build reusable business components that will access the database. You'll be using the Oracle ADF Business Components technology to map Java objects to existing tables in your database.

Wednesday, May 27, 2015

Why Oracle Database 12c ?

Oracle Database 12c introduces a new multitenant architecture that makes it easy to consolidate
many databases quickly and manage them as a cloud service. Oracle Database 12c also includes in-memory data processing capabilities delivering breakthrough analytical performance. Additional database innovations deliver new levels of efficiency, performance, security, and availability.
Oracle Database 12c comes in three editions to fit your business needs and budget: Enterprise Edition, Standard Edition, and Standard Edition One.

Monday, April 27, 2015

CMS CodeIgniter Benifits

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and  elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of shared  hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworks, then CodeIgniter might be a good fit.

CodeIgniter is an Application Development Framework - a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.

Friday, April 24, 2015

Web CMS Training Available

Content Management System (CMS) Training

Who should attend?
Staff who will be in-putting content for pages on the internet and wish to discover how easily they
can put in content, make alterations and/or additions before publishing the pages.

Objectives
To provide practical training of the most common features of the CMS used by staff authoring
 and/or editing content, including inputting different content types, previewing, checking and
changing content before publishing on the internet without having the knowledge of HTML.

Course content
     By the end of the course participants will understand:
    What a Content Management System (CMS) is:
  
    The benefits of using a CMS and
    How to use a CMS
    How to log on to the CMS
    How to define 'Content Types' and how to add content
    Using Templates to add content to the web site
    Entering Data into a Template
    Rich Text
    Mandatory Data
    Non Mandatory Data e.g. 'What's New
    Expiry Dates
    Incomplete/Complete/Publish
    Preparing Content for the web site
    Previewing
    Categorisation
    Adding Images
    Adding Keywords
    Adding Related Content
    Adding External Links
    Dublin Core
    Finish / Unlock
    Adding attachments to content
    Linking the files to the system
    Adding links within the content
    External
    Internal
    Email
    Understanding Workflow
    Selecting an Editor
    Attaching comments
    Editing content on the system
    Workflow notification
    Search for content
    Edit content
    Publish Content
    Finish/Unlock

Using Tools
    WordPress
    ProcessWire
    Codeigniter
    Bootstrap
    HTML5
    Jquery
    Adobe Dreamweaver CS5

Friday, April 17, 2015

create Business website in CMS/CMF (ProcessWire)

ProcessWire is an award winning Open Source Content Management System(CMS)  and Content Management Framework written in PHP. ProcessWire has been developed by Ryan Cramer since 2003. From 2003 to 2007 it was developed under the name Dictator CMS. From 2007–2010 it was developed as ProcessWire 1.x, and from 2010 to now, it has been developed as ProcessWire 2.x.

Using MYSQL with php is not part of the starters lessons PHP. First its time to understand the basics. What are types, variables, operators, control structures functions etc. etc. This basic knowledge is enough to get start with ProcessWire. For the MYSQL + PHP only way, the second lessons for PHP starts & you have to subscribe to the starters lessons for MYSQL. side note: Take the multi lessons hard way, over the easier step in to ProcessWire. This knowledge will make the difference from 'can make a website' to 'to be a developer'. Comparing only getting 1 field from SQL to ProcessWire is not fair. On the time you get 1 field out of SQL with PHP, ProcessWire has take care of all the stuff thats needed to be a fully functional CMF/CMS and given you back the field data needed. ProcessWire takes care of an awful lot of logic. But on the end it's the developer who decide. There's the framework part of PW.
ProcessWire is build with PHP and done very well. The simplicity to access data with ProcessWire is unique. Never seen this simple way anywhere.

Monday, March 2, 2015

Oracle Launches Oracle Hospitality

Oracle, building on the strong foundation MICROS established serving the hotel and food and beverage industries, has launched Oracle Hospitality Global Business Unit to accelerate development of innovative cloud, mobile, and guest experience technology.With hundreds of thousands of systems already deployed in hotels, restaurants, cruise operations, and other venues on all seven continents, Oracle Hospitality extends MICROS’ commitment to providing fast, reliable service and solutions to customers both large and small.