Discussion:
[soci-users] SOCI & DBMS_ALERT
isoul zi
2013-04-12 07:29:03 UTC
Permalink
ДеМь ЎПбрый!

КтП МОбуЎь пПльзПвался DBMS_ALERT?
В целПЌ ЌехаМОзЌ пПМятеМ. Не пПМятМП ОспПльзПваМОе WAITANY в связке с SOCI. Как пПлучОть "alert_message"?
ЕслО ктП тП заМОЌался пПЎПбМПй заЎачей, пПЎскажОте как реалОзПвывалО.
СпасОбП!


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Good day!

Has anyone used DBMS_ALERT?
In general, the mechanism is clear. It is not clear WAITANY use in conjunction with the SOCI. How to get "alert_message"?
If someone is doing a similar task , tell me how to implement.
Thank you!
--
isoul zi
isoul zi
2013-04-12 12:04:51 UTC
Permalink
Сейчас ОспПльзую такПй ЌехаМОзЌ. ОМ рабПтает в soci::into(z) пПлучаю "кашу" ЎлОМПй в 32Kb

Now I use this mechanism. He works in the soci :: into (z) get a "mess" in length 32Kb

std::string z;
        std::string req( "DECLARE \
                        alert_msg VARCHAR2(1800); \
                        alert_status INTEGER; \
                        alert_name VARCHAR2(40); \
                        BEGIN \
                        DBMS_OUTPUT.ENABLE; \
                        DBMS_ALERT.REGISTER('STATUS_CHANGE'); \
                        DBMS_ALERT.WAITANY(alert_name, alert_msg, alert_status); \
                        \
                        IF alert_status = 1 \
                        THEN \
                        DBMS_OUTPUT.PUT_LINE('timed out'); \
                        \
                        ELSE \
                        DBMS_OUTPUT.PUT_LINE('received alert: '||alert_name); \
                        END IF; \
                        DBMS_ALERT.REMOVE('STATUS_CHANGE'); \
                        END;"  );


         std::cout << req << std::endl;
         s << req, soci::into(z);
         std::cout << z << std::endl;
Post by isoul zi
ДеМь ЎПбрый!
КтП МОбуЎь пПльзПвался DBMS_ALERT?
В целПЌ ЌехаМОзЌ пПМятеМ. Не пПМятМП ОспПльзПваМОе WAITANY в связке с SOCI. Как пПлучОть "alert_message"?
ЕслО ктП тП заМОЌался пПЎПбМПй заЎачей, пПЎскажОте как реалОзПвывалО.
СпасОбП!
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Good day!
Has anyone used DBMS_ALERT?
In general, the mechanism is clear. It is not clear WAITANY use in conjunction with the SOCI. How to get "alert_message"?
If someone is doing a similar task , tell me how to implement.
Thank you!
--
isoul zi
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
soci-users mailing list
https://lists.sourceforge.net/lists/listinfo/soci-users
Loading...